本文介绍了如何更改光标图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何更改光标图像. 当我使用
Hi, How to change the image for cursor. when i use
panel1.Cursor = new Cursor(GetType(), "in.cur");它显示为"Object reference not set to an instance of an object"的异常. 当我这样使用时
Its showing exception as "Object reference not set to an instance of an object". when i use like this
panel1.Cursor = new Cursor("zoom-in.cur");它显示异常为"Image format is not valid. The image file may be corrupted.Parameter name: stream". 如何使用它.
It showing exception as "Image format is not valid. The image file may be corrupted.Parameter name: stream". How to use it.
推荐答案选中此 www.switchonthecode/tutorials/csharp-tutorial-how- to-use-custom-cursors [ ^ ] check this www.switchonthecode/tutorials/csharp-tutorial-how-to-use-custom-cursors[^]
请参阅以下内容: stackoverflow/questions/1175870/how-can- i-change-the-mouse-cursor-image [ ^ ] www.imagingcontrol/en_US/library/dotnet/cursor-on -ic-window/ [ ^ ] Refer these: stackoverflow/questions/1175870/how-can-i-change-the-mouse-cursor-image[^] www.imagingcontrol/en_US/library/dotnet/cursor-on-ic-window/[^]
看看这个论坛的讨论,讨论并解决了相同的问题. www.rw-designer/forum/1237 [ ^ ] Take a look at this forum discussion, same issue is discussed and resolved. www.rw-designer/forum/1237[^]
更多推荐
如何更改光标图像
发布评论