Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB.NET 1.0 > VB.NET 2002/2003 Basics
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 6th, 2004, 03:31 PM
Authorized User
 
Join Date: Apr 2004
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?

 
Old May 6th, 2004, 11:21 PM
Friend of Wrox
 
Join Date: Jun 2003
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
 
Old May 7th, 2004, 09:18 AM
Authorized User
 
Join Date: Apr 2004
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.

 
Old May 7th, 2004, 09:52 AM
Authorized User
 
Join Date: Apr 2004
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.

 
Old May 8th, 2004, 12:46 AM
Friend of Wrox
 
Join Date: Jun 2003
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





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





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