Answers for "how to uncheck a radio button in c#"

C#
0

how to uncheck a radio button in c#

bool isChecked =false;
    private void radioButton1_CheckedChanged(object sender, EventArgs e)
    {
        isChecked = radioButton1.Checked;
    }

    private void radioButton1_Click(object sender, EventArgs e)
    {
        if (radioButton1.Checked && !isChecked)
            radioButton1.Checked = false;
        else
        {
            radioButton1.Checked = true;
            isChecked = false;
        }
    }
Posted by: Guest on August-07-2021

Code answers related to "how to uncheck a radio button in c#"

C# Answers by Framework

Browse Popular Code Answers by Language