On c# the mousehover on a picturebox appear to do nothing.Do i need some kind of eventhandler? -
i trying create mousehover event picturebox, have had no luck far:
private void picturebox1_mousehover(object sender, eventargs e) { picturebox1.image = argyrocinema.properties.resources.ktz00h07; label1.text = "hover"; } private void picturebox1_click(object sender, eventargs e) { picturebox1.image = argyrocinema.properties.resources.ktz00h07; } private void picturebox1_mouseleave(object sender, eventargs e) { picturebox1.image = argyrocinema.properties.resources.ktz00h07; }
what going on here? mouseclick works correctly, maybe have add on form1.designer.cs
?
ok had add line on constructor: this.picturebox1.mousehover += new system.eventhandler(this.picturebox1_mousehover); although use mouseenter, faster
Comments
Post a Comment