c# - How can I change the mouse cursor image? -
I need to change the cursor image. Whenever the mouse is more than my form, then I Image loading is required. I am using version 1.1 of .NET Framework.
Here's what I have tried:
cursor = new cursor (GetType (), Application.StartupPath + "\\ windowfi.cur");
But it throws an exception:
Value can not be zero.
Parameter Name: datastream
The cursor is a constructor in the class, Kar file takes you to the path. use that. Like this:
this.Cursor = new cursor ("& lt; your_cur_file_path");
Comments
Post a Comment