PDA

View Full Version : کار با checkbox



saeedhushmand
یک شنبه 29 آبان 1390, 13:41 عصر
می خوام وقتی checkbox حالت button تیک خورد روش یک عکس نمایش داده بشه و وقتی تیکش برداشته شد
عکس هم نباشه

Farshid007
یک شنبه 29 آبان 1390, 17:19 عصر
private void checkBox1_CheckedChanged(object sender, EventArgs e)
{
if (checkBox1.Checked) checkBox1.Image = Image.FromFile("Your Image Address or Image From Resources");
else checkBox1.Image = null;
}