Visual Programming Lectures using Visual Studio 2015 C# Windows Form Application
Lecturer: Saman M. Almufti / Kurdistan Region, Nawroz University
facebook: https://www.facebook.com/saman.malmufti
4. CheckBox has two or three states. This control
provides a way for an option to be selected and
deselected independently of other options.
5. In this project
Drag down a Label
Drag down a checkbox (if the checkbox is checked the text of label
will be true, other wise it will be false.
private void checkBox1_CheckedChanged(object sender, EventArgs e)
{
if (checkBox1.Checked == true)
{
label1.Text = "true";
}
else
{
label1.Text = "false";
}
}