在鼠标光标上设置一个非常小的图像 [英] set an very very small image in mouse cusor

查看:77
本文介绍了在鼠标光标上设置一个非常小的图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在C#Windows窗体中的鼠标光标中设置图像?

how to set an image in Mouse cursor in C# windows form?

推荐答案

创建控件后,更改Cursor的属性.
作为游标类的输入,您可以使用游标文件的字符串路径.

When the control is created change the property of Cursor.
As input to a Cursor class you can use a string path to a cursor file.

Cursor = new Cursor("cursor.cur");



图片可以是任何图片,例如jpeg,但是它必须很小.我使用了10像素乘以10像素的图片



The picture can be any picture for example jpeg, however it needs to bee small. I used a 10px times 10px picuture


这篇关于在鼠标光标上设置一个非常小的图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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