首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

初学者问个关于鼠标的有关问题 Cursor = new Cursor(GetType(), "Rectangle.cur")

2014-01-05 
菜鸟问个关于鼠标的问题Cursor new Cursor(GetType(), Rectangle.cur)Cursor new Cursor(GetType()

菜鸟问个关于鼠标的问题 Cursor = new Cursor(GetType(), "Rectangle.cur");
Cursor = new Cursor(GetType(), "Rectangle.cur");

初学者问个关于鼠标的有关问题  Cursor = new Cursor(GetType(), "Rectangle.cur")
初学者问个关于鼠标的有关问题  Cursor = new Cursor(GetType(), "Rectangle.cur")

请问这是怎么回事?

为什么运行报错呢?

多谢!!
[解决办法]
http://www.codeproject.com/Articles/8494/DrawTools
参考
[解决办法]
Cursor 构造函数 (Type, String)Visual Studio 2010
发送反馈
从具有指定资源类型的指定资源初始化 Cursor 类的新实例。
命名空间:   System.Windows.Forms
程序集:   System.Windows.Forms(在 System.Windows.Forms.dll 中)
语法
VBC#C++F#JScript
打印
public Cursor(
    Type type,
    string resource
)
参数
type
类型: System .Type 
资源 Type。

resource
类型: System .String 
资源名。
[解决办法]
Cursor = new Cursor("Rectangle.cur");
[解决办法]
http://msdn.microsoft.com/en-us/library/cyw4de71(v=vs.110).aspx
[解决办法]
http://www.codeproject.com/Articles/8494/DrawTools
[解决办法]
 this.Cursor = new Cursor(GetType(), "MyCursor.cur");  

热点排行