C# – How to we uncheck a radio button


I want to know how can we uncheck a radio button. It should work like a checkbox.

Best Solution

Use the following code to use radio button like check box.

    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;
            radioButton1.Checked = true;
            isChecked = false;