Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

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;
        }
    }
Comment

PREVIOUS NEXT
Code Example
Csharp :: c# modulo 
Csharp :: c# remove everything after last slash 
Csharp :: Allow edit in Datagrid C# 
Csharp :: Convert Json String to model Class or Object 
Csharp :: c# comment 
Csharp :: c# remove time in datetime 
Csharp :: same click event diffrenet buttonms c# 
Csharp :: unity agent look at 
Csharp :: c# write iformfile 
Csharp :: class in c# 
Csharp :: return stream from file c# 
Csharp :: expando object c# 
Csharp :: finding values in the registry 
Csharp :: c# destroy function...unity 
Csharp :: wpf get dynamic resource from code 
Csharp :: math with c sharp 
Csharp :: select distinct linq mvc 
Csharp :: sieve 
Csharp :: c# remove invalid directory characters 
Csharp :: c# find comma in text and remove 
Csharp :: update browserslist 
Csharp :: async where linq 
Csharp :: persian datapicker 
Csharp :: linq select max value from list 
Csharp :: join string c# 
Csharp :: unity collapse hierarchy script 
Csharp :: button event trigger wpf 
Csharp :: c# mock ref parameter 
Csharp :: lwjgl fullscreen 
Csharp :: c# webbrowser write html to text file 
ADD CONTENT
Topic
Content
Source link
Name
5+1 =