鼠标右键单击克隆图片框 [英] clone a picture box on mouse right click
本文介绍了鼠标右键单击克隆图片框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好,
当我按下鼠标右键时,我需要一些关于如何克隆图片框(包含原始图片)的代码。
谢谢
Kyriakos
Hello,
I need some code on how I can clone a picturebox (with the image that is contained on the original) when I press the right mouse button.
Thank you
Kyriakos
推荐答案
处理鼠标点击事件,并检查e.Button参数对于System.Windows.Forms.MouseButtons.Right。
如果是,则使用sender参数识别PictureBox并创建一个新副本。
这有什么问题?
Handle the Mouse Click event, and check the e.Button parameter against System.Windows.Forms.MouseButtons.Right.
If it is, then use the sender parameter to identify the PictureBox and create a new copy.
What part of this is a problem?
只需将此按钮放在代码中: EASY
Just put this button in your code: EASY
这篇关于鼠标右键单击克隆图片框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文