i have create this code for my button but the image doesen’t change why?
private void pictureBox94_Click(object sender, EventArgs e)
{
if (pictureBox94.Image == Properties.Resources.vuoto)
{
pictureBox94.Image = Properties.Resources.select;
checkBox3.Checked = true;
}
else
{
pictureBox94.Image = Properties.Resources.vuoto;
checkBox3.Checked = false;
}
}
any error!
Refactor your method to be check weather the check box is checked instead of checking the image equity: