There's a constructor for Cursor that takes a Stream, and since resource
files are just a container for Streams, yes you can do this.  Just extract
the relevant stream from the ResourceManager and pass it to the Cursor
constructor.

But I usually just store them as assembly manifest resources.  The Cursor
constructor that takes a Type and a string just calls
Assembly.GetManifestResource, passing the Type and string straight through.
Unless you need to be able to localize your cursors, you don't really need
to go through a ResourceManager (and there is no intrinsic support for
ResourceManager-based resource files in the Cursor class).

--
Ian Griffiths
DevelopMentor

----- Original Message -----
From: "Matt Horne" <[EMAIL PROTECTED]>


> Can a .CUR file be stored in a resource file?  I can do it with bitmaps,
> strings, and icons but not with mouse cursors.  Anyone know how to do
this?

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to