广场鼠标指针在Visual Studio 2008设计 [英] Square mouse pointer in Visual Studio 2008 designer

查看:189
本文介绍了广场鼠标指针在Visual Studio 2008设计的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一个奇怪的问题与Visual Studio 2008。我有一个包含几种形式WinForms应用程序。

A strange issue with Visual Studio 2008. I have a winforms application that contains several forms.

在我的形式之一,鼠标指针具有围绕箭头方形,象在附加的图像。我无法摆脱它,不管是什么我试过了。方保持随鼠标指针移动。似乎可笑,但它确实令人沮丧的,真的,因为我不能使用的拖放和拖放功能都没有。这$ P $从与设计师的工作pvents我。想象一下,我不能抢任何控制来调整它的边缘。我可以移动的控制,但...

On one of my forms, the mouse pointer has a square shape around the arrow, like in the attached image. I cannot get rid of it, no matter what I tried. The square keeps moving along with the mouse pointer. Seems funny, but it's really frustrating, really, because I cannot use the drag-and-drop functionality at all. This prevents me from working with the designer. Imagine that I cannot grab the edge of any control to resize it. I can move controls, though...

什么是讲究这种形式是,它是从其他形式的衍生,像这样的:

What is particular about this form is that it is derived from another form, like this:

public partial class MyForm : BaseForm

基本形式也是来自表格。我说没有什么太生僻。

BaseForm is also derived from Form. I'd say nothing too uncommon.

感谢您的任何想法。

Thanks for any idea.

后来编辑: 我发现我为什么进入MyForm的设计师时,得到了一个错误。 基本形式有Microsoft.Reporting.WinForms.ReportViewer组成部分。成分加入作为私人构件。 当与MyForm的设计师工作,VS是自动生成一个新的Microsoft.Reporting.WinForms.ReportViewer成员MyForm的,所以我有2名成员具有相同的名称。一个基类,一是在派生类中定义。 我解决了这个通过声明基类的成员作为公众和再生的派生类,所以不需要重复的事情。 总之,不幸的是,这并没有用鼠标解决我的设计问题...

Later I found why I got an error when entering into MyForm's designer. BaseForm has an Microsoft.Reporting.WinForms.ReportViewer component. The component was added as a private member. When working with MyForm's designer, VS was automatically generating a new Microsoft.Reporting.WinForms.ReportViewer member for MyForm, so I got 2 members with the same name. One defined in the base class, one in the derived class. I solved this by declaring the base class's member as public and regenerating the derived class, so no need to duplicate things. Anyway, unfortunately, this did not solve my designer issue with the mouse cursor...

推荐答案

您已经尽力了,

Cursor = Cursors.Default;

或将其设置为其他光标值?

or setting it to some other Cursors value?

这篇关于广场鼠标指针在Visual Studio 2008设计的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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