J
Janice Browns
I have difficulties trying to load a cursor from a resource file.
Using VS 2003 -- opening a new vanilla C# windows form, adding a new vanilla
cursor file -- setting Build Action to 'Embedded Resource'.
In my code I use:
this.Cursor = new Cursor(GetType(),
"WindowsApplication1.Cursor1.cur");
and I get a Null Exception.
If I create a cursor with the file itself (not embedded resource) it work
ok.
I tried tweaking whatever I could -- but could not make it work.
btw - i have no problem reading bitmap resources, but I cant make cursors
resource work.
Any idea?
Thank you very much,
Janice.
Using VS 2003 -- opening a new vanilla C# windows form, adding a new vanilla
cursor file -- setting Build Action to 'Embedded Resource'.
In my code I use:
this.Cursor = new Cursor(GetType(),
"WindowsApplication1.Cursor1.cur");
and I get a Null Exception.
If I create a cursor with the file itself (not embedded resource) it work
ok.
I tried tweaking whatever I could -- but could not make it work.
btw - i have no problem reading bitmap resources, but I cant make cursors
resource work.
Any idea?
Thank you very much,
Janice.