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

Popular posts from this blog

mod rewrite - Using "?" when rewriting the URL -

.htaccess: Transfer name to index.php if not directory public -

Admob integration with pygame in android -