拖放标签,面板中的文本框 [英] Drag and drop lable, textbox in panel
本文介绍了拖放标签,面板中的文本框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在编写一个Windows窗体应用程序,该应用程序的面板带有一些
里面的标签.
我需要让用户在
内部拖放这些标签
控制板.
I''m writing a windows form application that has a panel with some
labels in it.
I need to let the user move these labels with drag and drop inside the
panel. How can I do it?
推荐答案
使用MouseDown
,MouseMove
和MouseUp
事件处理程序.
有关更多详细信息,请阅读本文:在运行时将控件移动到表单上 [
Use theMouseDown
,MouseMove
andMouseUp
event handlers.
For more details read this article: Move controls on a form at runtime[^]
这篇关于拖放标签,面板中的文本框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文