无法在 Windows 窗体设计器上使用鼠标移动控件 [英] Can't Move Controls With Mouse on Windows Form Designer

查看:31
本文介绍了无法在 Windows 窗体设计器上使用鼠标移动控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近安装了 Visual Studio 2013 Professional,发现在 Windows 窗体应用程序项目类型中,我无法在设计模式下移动窗体上的任何控件.我测试了一些替代方案,发现以下内容:

I recently installed Visual Studio 2013 Professional, and found that in the Windows Forms Application project type I'm unable to move any controls on a form in design mode. I tested a few alternatives out and found the following:

  • 控件可以用键盘移动
  • 控件可以通过拖动控件轮廓上的关键点来调整大小
  • 控件可以使用工具菜单中的命令对齐
  • 控件可以通过在设计器属性网格中手动设置Location字段来移动
  • 控件可以停靠
  • 控件不能用鼠标移动
  • Controls can be moved with the keyboard
  • Controls can be resized by dragging the keypoints on the outline of the control
  • Controls can be aligned using the commands in the Tools menu
  • Controls can be moved by setting the Location field manually in the designer property grid
  • Controls can be docked
  • Controls cannot be moved with the mouse

此外,如下图所示,表示控件可移动的十字"图标在任何控件上均不可见.

Furthermore, as you can see in the image below, the "cross" icon that indicates that the controls are movable is not visible on any controls.

我已尝试以下方法,但仍未能解决问题:

I've tried the following, but have not yet been able to correct the issue:

  • 创建了一个新项目 &解决方案(同样的问题)
  • 创建了一个新表单(同样的问题)
  • 验证表单和控件的 Locked 属性是否设置为 False
  • 验证表单是否继承自 Form(正如预期的那样,因为这是标准安装并且我第一次使用它)
  • 谷歌寻求帮助(没有任何效果)
  • Created a new project & solution (same issue)
  • Created a new form (same issue)
  • Verified that the Locked property of both the form and controls is set to False
  • Verified that the form inherits from Form (as expected, as this is a standard installation and the first time I've used it)
  • Googled for help (nothing that worked)

如有任何建议,我们将不胜感激.

Any suggestions would be appreciated.

推荐答案

花了一些时间但我终于找到了一个解决方法,如果没有答案的话.碰巧的是,我的计算机会定期停止允许我拖放任何东西.对此的解决方案是按 Esc(退出)键,这会立即恢复功能.

It took some time but I finally found a workaround, if not an answer. As it happens, periodically my computer will stop allowing me to drag-and-drop anything. The solution to this is to press the Esc (escape) key, which instantly restores functionality.

这篇关于无法在 Windows 窗体设计器上使用鼠标移动控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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