I have the build options to 'Embedded Resource', it still does not
work. Every time it reaches the cursor statement, I get a "Object
reference not set to an instance of an object." error. This is my
statement:
Cursor myCurdor;
myCursor = new Cursor(GetType(), "Cursor1.cur");
"Cursor1.cur" is a cursor file added to the project with "Embedded
Resource" selected. I've tried screwing aorund with 'custom tool
namespace', but it doesn't seem to matter.
VJ wrote:
IDE you will include the file in the project and there is a property
available in the property window called "Build Action", when you select the
file. Set that to "Embedded Resource"
VJ
"bern11" <be****@yahoo.comwrote in message
news:g7******************************@comcast.com. ..
>>How do you embed a custom cursor? The help says:
// On the command line:
// Add the following flag:
// /res:CursorFileName.Cur,Namespace.CursorFileName.Cu r
What if you are compiling with the IDE? I don't see a 'command line
options' field anywhere...???