embedded resource

  • Thread starter Thread starter Pascal Cloup
  • Start date Start date
P

Pascal Cloup

Hi,

How to to create an object (like Cursor) from a .Cur file embedded in a dll
of C# classes?

Thanks in advance,

Pascal
 
Thnak you Herfried for your help.

to resolve my problem, i use the something like this in my code:

public class myDllClass
{

public Cursor GetCursor1()
{
....
aCursor = new Cursor(
Assembly.GetAssembly(this.GetType()).GetManifestResourceStream(
"EmbeddedRsrc.Photo1.Cur" ) );
....
return( aCursor);
}

}

where EmbeddedRsrc is the namespace defined in the dll and Photo1.Cur is the
name of the cursor file added in the dll project with the property eembedded
resource.

I wish you to all an happy new year

Pascal
 
Back
Top