如何在不单击鼠标的情况下移动表单? [英] How can I move a form without clicking mouse?

查看:136
本文介绍了如何在不单击鼠标的情况下移动表单?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在不点击鼠标的情况下移动我的表单。我尝试了它并且表单正在移动但是当我快速移动光标时,它会移动到表单之外。这可以通过设置鼠标位置来解决但是它不符合我想要的品质。但是当我按住鼠标左键或右键并移动表格时,这个问题不会发生。我的问题是如何移动这样的表格?

对不起我的英文。

I want to move my form without clicking mouse.I tried it and form is moving but when I move the cursor fast,it is going outside of the form.This may be solve with setting mouse position but it doesn't meet the quality that i want. But this problem doesn't happen while I am keeping mouse left or right button is held down and moving form. My question is how can i move a form like that?
Sorry for my english.

推荐答案

问题制定不当,但是,如果你真的需要,你可以通过鼠标来感知已经处理它的控件之外的事件,包括表单。即使您快速移动鼠标,它也可以超出应用程序表单,但仍会向您的应用程序调用鼠标事件。您需要捕获鼠标才能实现这一目标。



http://msdn.microsoft.com/en-us/library/ms171545%28v=vs.110%29.aspx [ ^ ]。



-SA
The problem is poorly formulated, but, if you really need to, you can sense the events from the mouse which is already outside of the control handling it, including the form. Even if you move mouse fast, it can go beyond the application form, but will still invoke mouse events to your application. You need to capture the mouse to achieve that.

http://msdn.microsoft.com/en-us/library/ms171545%28v=vs.110%29.aspx[^].

—SA


这篇关于如何在不单击鼠标的情况下移动表单?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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