How to load Cursors from Resources

J

JPK

I can add an Image to my Resources and then load/use the image in code like
so .. MyApp.Properties.Resources.MyImage. But this doers not seem to work
for Cursors. When I try to add a CUrsor file to my resources it places it
in the Files portion and cannot be loadedx into a Cursor at run tim like
string and images can. Is there some trick to make this happen or must I
use the old

this.curCopy = new
Cursor(assem.GetManifestResourceStream("MyApp.Images.Cursors.copy.cur"));
thanks,

JIM
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top