拖动控件 [英] dragging controls

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

问题描述

我想在运行时将多个文本框拖放到放置在窗体上的框架.
我一次只能拖放一个控件.但是我希望多个控件必须一次拖放.

I want to drag and drop multiple textboxes at runtime to a frame which is placed on form.
i am move drag or drop only one control at a time. but i want that multiple controls has to drag and drop at a time.

推荐答案

假设它是基于Windows Forms的应用程序,则需要明智地处理KeyPress,MouseUp,容器的Mousedown,MouseMove和Paint事件.

我想说的是,如果您可以发表到目前为止的尝试并提出一个具体的问题,则可以更轻松地为人们提供具体的答复.
Assuming it is Windows Forms based application, you will need to wisely handle KeyPress, MouseUp, Mousedown, MouseMove and Paint event of the container.

I would say if you can post what you have tried so far and state a specific problem, it would be easier to give a concrete reply for people.


这篇关于拖动控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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