picturebox doubleclick and click events

自古美人都是妖i 提交于 2019-12-11 13:19:23

问题


I have a picturebox and 2 events:

picbox.Click += new System.EventHandler(clickpicbox);
picbox.DoubleClick += new System.EventHandler(picbox_DoubleClick);

Now, the click event works just fine but the doubleclick doesn't even get fired!!

What might cause this?

If I remove the Click event then the doublecklick gets fired, so it's weird..

I have nothing in those events by the way, as I'm testing what it may be I did not include any code in the actual functions for each event..

Thanks!

来源:https://stackoverflow.com/questions/18305572/picturebox-doubleclick-and-click-events

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!