Click here to Skip to main content
15,883,734 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How do I...button enabled when i selected a radio button
Posted

Try this:

C#
DependantButton.Enabled = RadioButtonController.Checked;


You need to place this code inside the RadioButtonController CheckedChanged event.
 
Share this answer
 
v2
Comments
tanugarg 11-Feb-14 5:22am    
this code is not working
GuyThiebaut 11-Feb-14 5:36am    
Please provide the an example(meaning actual code) of what you are trying to do, as "it's not working" does not tell me very much that then enables me to help you.
C#
if(Radiobutton1.checked == true)
{
  Button1.enable = true;
}
else
{
Button1.enable = 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