读书人

初学者问个关于鼠标的有关问题 Curso

发布时间: 2014-01-05 18:22:56 作者: rapoo

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

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

请问这是怎么回事?

为什么运行报错呢?

多谢!!
[解决办法]
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");

读书人网 >C#

热点推荐