如何知道在vb.net中双击面板中的哪个控件
在 vb.net 中,我有一个面板,其中添加了多个图片框控件。当双击图片框时,我想保存它的图像。 那么如何知道双击面板中的哪个图片框控件呢?
In vb.net i have one panel in which multiple picture box controls are added. When a double click is made on picture box, I want to save image of it.
so how to know on which picture box control in panel double click is done?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以处理每个图片框的 DoubleClick 事件。 DoubleClick 事件处理程序有一个 Sender 参数,该参数保存对引发事件的实际控件的引用。
You can handle the DoubleClick event of each picture box. The DoubleClick eventhandler has a Sender parameter which holds the reference to the actual control that raised the event.