PictureBox右键单击 [英] PictureBox Right Click

查看:80
本文介绍了PictureBox右键单击的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




如何触发鼠标右键单击图片"框?

Hi,


How To fire Mouse right Click on Picture box??

推荐答案

^ ]


将鼠标指针放在PictureBox上,然后按下并释放右手按钮...


或者,如果您的意思是我如何为右键单击PictureBox设置处理程序?"然后在设计器中将其突出显示,查看属性"窗格,选择事件"列表(按闪电"按钮),然后双击"MouseUp"事件.在产生的代码中,使用MouseButtons.Right
Put your mouse pointer over the PictureBox, and press and release the right hand button...


Alternatively, if you mean "how do I set up a handler for right Click on PictureBox?" then highlight it in the designer, look at your Properties pane, select the Events list (press the "lightening bolt" button) and double click the "MouseUp" event. In the code that results, check the e.Button value with MouseButtons.Right


检查e.Button的值.您可以使用MouseEventArgs [ ^ ]
You can use the MouseClick[^] event and check which button was pressed from MouseEventArgs [^]


这篇关于PictureBox右键单击的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆