Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要能够在我的应用程序运行时修改光标,然后再恢复它。
Cursor.Current 似乎不起作用。
我发现全局更改光标不是一个好主意。相反,我决定通过钩子跟随实际的光标,并在它周围绘制我的对象。
好吧,您可以尝试这样的事情(从应用程序中正在运行的表单实例更改)
this.Cursor = Cursors.Cross;
并将其重置为默认值
this.Cursor = Cursors.Default;
Cursors 类包含您可以使用的各种 Cursor 对象