在应用程序运行时选择图片框 [英] Selecting a Picture Box while application is running
本文介绍了在应用程序运行时选择图片框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
建议在应用程序运行时选择控件(例如Picturebox)的方法.
例如-我想用鼠标拖动表格中的图片.
Suggest a way of selecting a control (eg Picturebox) when application is running.
For eg.-- i want to drag the picture in the form using mouse.
推荐答案
好,您的问题实际上没有任何意义.要选择"控件,只需执行以下操作:
Well, your question doesn''t really make any sense. To "select" a control, simply do this:
PictureBox.Focus();
至于第二部分,您没有拖动图像,而是拖动了包含图像的控件.该提示可能会有所帮助:
可拖动的WinForms控件 [
As to part two of your un-question, you''re not dragging the image - you''re dragging the control that contains the image. This tip might help:
Draggable WinForms Controls[^]
这篇关于在应用程序运行时选择图片框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文