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

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

.htaccess - Matching full URL in RewriteCond -