Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB.NET 1.0 > VB.NET 2002/2003 Basics
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
VB.NET 2002/2003 Basics For coders who are new to Visual Basic, working in .NET versions 2002 or 2003 (1.0 and 1.1).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET 2002/2003 Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old May 6th, 2004, 03:31 PM
Authorized User
 
Join Date: Apr 2004
Location: , , .
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default My Radio Button is not checked

I have two radio buttons grouped together in a group box. I set the "Checked" property of the first one to "True" in the properties box, but the program does not see any radio button checked.

I hard coded:radiobutton.checked = true in the form load event, but the program does not see that any button is checked.

I looked at the windows generated code and found: me.radiobutton.checked = true.

How can I get the program to recognize that the button is checked?

Reply With Quote
  #2 (permalink)  
Old May 6th, 2004, 11:21 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: , , .
Posts: 540
Thanks: 0
Thanked 4 Times in 4 Posts
Default

It looks like everything you're doing should work. Have your tried deleting those radio buttons and dragging two news ones from the toolbox to see if the problem duplicates itself? What happens when you set the checked property of the 2nd one to true?

J
Reply With Quote
  #3 (permalink)  
Old May 7th, 2004, 09:18 AM
Authorized User
 
Join Date: Apr 2004
Location: , , .
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I've deleted the groupbox and the radio buttons. Recreated them and the same thing happens. I'm drawing the group box first and adding the radio buttons.

Reply With Quote
  #4 (permalink)  
Old May 7th, 2004, 09:52 AM
Authorized User
 
Join Date: Apr 2004
Location: , , .
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I had to recreate the entire form. I must have messed something up along the way.

Reply With Quote
  #5 (permalink)  
Old May 8th, 2004, 12:46 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: , , .
Posts: 540
Thanks: 0
Thanked 4 Times in 4 Posts
Default

Or something in Visual Studio did it. It wouldn't be the first time Visual Studio messed something up. Save your work often! :D

J
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Radio Button[When it is checked] ashfaqshariff2007 Classic ASP Databases 1 October 15th, 2008 02:09 PM
put checked radio ID separated by a specified deli kumiko Javascript 1 January 28th, 2008 05:39 AM
check if a radio button has been checked crmpicco Javascript How-To 0 October 13th, 2005 09:53 AM
if radio button is checked crmpicco Javascript How-To 2 March 31st, 2005 05:10 PM
Button acts depending on radio button values janise Access 4 March 10th, 2004 12:53 AM



All times are GMT -4. The time now is 08:16 PM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.