C# 中 Cusor 的自定义文件 Cur

发布于 2024-12-21 13:20:24 字数 113 浏览 2 评论 0原文

我想在 C# 表单上自定义光标。 我创建了一个文件 Cur,但不知道更改它。你如何改变它?

我想将 .gif 文件加载到 .cur 文件??

你能帮帮我吗.!非常感谢必须>!

I want to custom my Cursor on my Form in C#.
I created one file Cur, but don't know change it. How do you change it?

I want to load file .gif to .cur file??

Could you help me.! Thank very must>!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

北城半夏 2024-12-28 13:20:24

首先它需要采用 .cur 格式。 快速搜索会给你将 .gif 制作为 .cur 所需的内容

获得 .cur 文件后,只需将其加载并设置光标即可。

Cursor myCursor = new Cursor("myCustomCursor.cur");
this.Cursor = myCursor; //this can be whatever...a textbox, the form, a button. Pretty much anything that is a control

First it needs to be in a .cur format. A quick search will get give you what you need to make a .gif into a .cur

Once you have your .cur file, just load it in and set the Cursor.

Cursor myCursor = new Cursor("myCustomCursor.cur");
this.Cursor = myCursor; //this can be whatever...a textbox, the form, a button. Pretty much anything that is a control
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文