//Just change the borderstyle as i did below. I used this as if the picture boxes were buttons.
private void PictureBoxMouse Over(object sender, EventArgs e)
{
unselectBox(thi s.displayPanel) ;
try
{
PictureBox picBox = (PictureBox)(se nder);
picBox.BorderSt yle = BorderStyle.Fix ed3D;
}
catch
{
return;
}
}
private void unselectBox(Con trol Form)
{
foreach (Control cControl in Form.Controls)
{
if (cControl is PictureBox)
{
((PictureBox)cC ontrol).BorderS tyle = BorderStyle.Non e;
}
}
}
private void PictureBoxMouse Over(object sender, EventArgs e)
{
unselectBox(thi s.displayPanel) ;
try
{
PictureBox picBox = (PictureBox)(se nder);
picBox.BorderSt yle = BorderStyle.Fix ed3D;
}
catch
{
return;
}
}
private void unselectBox(Con trol Form)
{
foreach (Control cControl in Form.Controls)
{
if (cControl is PictureBox)
{
((PictureBox)cC ontrol).BorderS tyle = BorderStyle.Non e;
}
}
}
Comment