111,120
社区成员
发帖
与我相关
我的任务
分享
Bitmap bitmapC = new Bitmap("F:\\img1.png");
IntPtr handleC = bitmapC.GetHicon();
System.Windows.Forms.Cursor myCursorC = new System.Windows.Forms.Cursor(handleC);
this.Cursor = myCursorC;
针对这种情况真是不知道什么原因,那里出错了?该怎么改?
[/quote]
。。。。我是想用美工做的图片做鼠标图标的唉

Bitmap bitmapG = new Bitmap(@"hand2.png");
IntPtr handleG = bitmapG.GetHicon();
System.Windows.Forms.Cursor myCursorG = new System.Windows.Forms.Cursor(handleG);
this.Cursor = System.Windows.Forms.Cursors.Hand;
改成这样,鼠标图标就没换。。。。