Click here to Skip to main content
15,882,796 members
Please Sign up or sign in to vote.
1.00/5 (4 votes)
See more:
hi ,

i wan't radio button code iam using 3 radio buttons..one time select only one radio button .. how to write the code
Posted

 
Share this answer
 
Comments
[no name] 23-Jul-13 15:01pm    
w3fools.com
Maciej Los 23-Jul-13 15:20pm    
Interesting collection of links.
+5!
ridoy 23-Jul-13 15:28pm    
thanks Maciej..:)
What you are saying I am pretty sure and just tested it but you can only select one radio button at a time no matter what. That is why it is called a radio button. If you want to disable clicking any other radio button after a user clicks one then you need to disable all the radio buttons when somebody clicks it.

Code:

Double click each radio button and put this code in

VB
radiobutton1.Enabled = False
radiobutton2.Enabled = False
radiobutton3.Enabled = False
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900