picturebox doubleclick even handler -
i generate picturebox in runtime, add event:
picbox.doubleclick += new system.eventhandler(picbox_doubleclick);
then this:
private void picbox_doubleclick(object sender, eventargs e) { // stuff here not related question }
now, when double click on image, never enters picbox_doubleclick function, doing wrong?
this works charm:
picbox.click += new system.eventhandler(clickpicbox);
this.picbox.doubleclick += new system.eventhandler(picbox_doubleclick);
in general if it's not working, event not added correct object.
Comments
Post a Comment