Click here to Skip to main content
15,886,137 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I set "Checked" of radiobutton is false. But when I run the Application, it also checked at radiobutton 1. How can I fix it?

What I have tried:

This is my code
C#
private void gg_Load(object sender, EventArgs e)
{
    radioButton1.Checked = false;
    radioButton2.Checked = false;
    radioButton3.Checked = false;
    radioButton4.Checked = false;
}


And , this is link of picture : check.png - Google Drive[^]

Thanks for your help!!
Posted
Updated 1-Jan-22 2:26am
v2

Set the TabStop property to false on all of the radio buttons. I know it sounds weird, but this is the only way to do what you want (assuming we're talking about WinForms here, since you didn't specify).
 
Share this answer
 
v2
I have the same problem on Monodevelop. Radiobutton does not have a tabstop property. I've tried everything. At the beginning of the program I put RadioButton.Active = false, but it didn't work. A Radiobutton is always marked. I needed everyone to appear unchecked at the beginning of the program. Can someone help me?
 
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