如何在c#中通过鼠标移动控件 [英] how to move control by mouse in c#

查看:155
本文介绍了如何在c#中通过鼠标移动控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法在c#中的winform中移动控件(按钮,标签,文本框,....)(当我设计我的表单时)

我可以通过键盘移动它们但不能通过鼠标移动。

我不知道vc的设置已被更改。

这个问题出现在所有myproject中,并且视觉设置已经变好。

I can not move control (button,label, textbox , ....) in winform in c#(when I design my form)
I can move them by keyboard but cannot move by mouse.
I dont know what setting of vc has been changed.
this problem is in all myproject and a setting of visual is chenged.

推荐答案

可能只是Visual Studio中的一个小问题 - 如果你不能在设计时使用鼠标移动控件,但你可以使用键盘意味着它们不会停靠在任何地方或包含在其他控件中。



因此关闭VS并重新启动它 - 这样的故障通常就会消失!
Probably, it's just a glitch in Visual Studio - if you can't move controls at design time with the mouse, but you can with the keyboard it means they aren't docked to anywhere or contained within other controls.

So shut down VS and restart it - glitches like this often go away that way!


这篇关于如何在c#中通过鼠标移动控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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