473,395 Members | 1,468 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Deselect all radio buttons in a group - VB2005

Hi, i'm new to VB. I have a problem with de-selecting radio buttons in group box containers. I've tried to set focus to other objects under Sub New (initialization) but it didn't work. The rdo buttons were still selected.

I've tried setting this: rdoName.Checked = False, as well, that didn't work. For some reason the top radio button in the group box is always selected!

I've also tried setting the rdoName.AutoCheck = False. That works. The radio button at start up aren't selected but when i try to click on the rdo button, it won't let me.

So i need the radio button to be deselected in the group box and let me be able to click on it when i want to.

Someone help please.
Feb 24 '08 #1
4 13246
Killer42
8,435 Expert 8TB
I'm not sure you can de-select all radio buttons in a group. Their whole purpose is to choose between mutually exclusive options. I think the standard technique is, where required, to include a "null option" in the group. For example, the first or last option might be "None".

Hm... now that I'm thinking about it, I seem to recall someone mentioning a property which allows you to specify whether all the radio buttons in a group can be unselected. I don't recall what the property is, but have a look through the properties on the "group box container" as well as the radio button(s).

(I can't check it, as I'm using VB6 which works differently.)
Feb 25 '08 #2
jamesd0142
469 256MB
RadioButton1.Checked = False

That seems to do the trick for me...

James
Feb 25 '08 #3
I had the same problem, which is actually how I ended up here...

Anyway, I solved it, in mine at least. RadioButton1's default setting for Checked is False, but for some reason when I debugged it, it came up checked anyway until I changed the property to True and then back to False again.

I have no idea why.
Feb 6 '09 #4
Please use CheckBox instead of radio/optionbox.
Jul 14 '10 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: John Mullen | last post by:
I want to take the following HTLM and use javascript to turn on radio buttons if checkbox is checked, can I do this with javascript (maybe onClick or an array) or do i need a server side script ?...
3
by: elhombrebala | last post by:
With this script I can force the user to select the checkbox befor continuing, but now I have a menu with lots of radio unputs and I woul like the user to select at least 2 of them; how can I check...
6
by: Orchid | last post by:
I have 2 fields with Radio button Data Type, and both fields with more than one options. On Field1, I want the user to select option1, then Field2 is shown and able to select. If the user selects...
2
by: James P. | last post by:
Help, I need to display radio buttons on a form. The data is from SQL table: each row in each table is displayed as a radio button. I have multiple SQL tables so I understand I need to put...
7
by: deepagulati | last post by:
Hi, I need an urgent help from you. When we dynamically genrate any list box (Select Box) it shows one default value as selected. Is there any way that we can deselect that value. I...
7
by: Jerim79 | last post by:
My situation is that I have a form that asks the user for a number. Next, I execute a while loop that displays a group of questions the amount of times the customer entered. For instance, the loop...
41
by: jpmcafee | last post by:
Hi Guys, Iam new to vb2005 and programming and I could really use some help. I have finished my book on vb2005 and i cant find what I am looking for, Essentially I want to create...
2
by: dpazza | last post by:
Hi, I'm creating a quiz on using a form in VB 2005 express. I have four sets of questions and answers (labels and radio buttons) and I change between which set of questions is currently shown on...
5
by: alanb | last post by:
Hi, hope someone can help, I need to be able to keep a running total of radio buttons selected, as a user goes through a set of 16 questions, devided in to 4 catorgories, then on "submit" have the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.