Hello Again, CodeProject
Another one, this time
I am trying to create a custom cursor for my forms application
i.e not using the default ones but .cur files,
I added myCur.cur to my project,
then I also set the Build Action to "Embedded Resource", Also tried to set it to "Resource"
Here's the code samples I tried :
Cursor mycur = new Cursor(GetType(),"myCur.cur")
this.Cursor = mycur
Cursor mycur = new Cursor(GetType(),Application.StartUpPath + @"\myCur.cur")
this.Cursor = mycur
Cursor mycur = new Cursor(Application.StartUpPath + @"\myCur.cur")
this.Cursor = mycur
Cursor mycur = new Cursor("myCur.cur")
this.Cursor = mycur
For Try Number I,2 I get the following error:
NullReferenceException was Unhandled
Parameter Name : Stream
For try number 3,4
Invalid Image Format
where as the cursor works completely fine on Windows
Any Help would be appreciated.............
~Sids123