> > > this shoud be an assembly of a Form i guess, u see i'm in the middle
> > > of a project in witch we are at work of creating a program for
[quoted text clipped - 12 lines]
>
> Thats not working , i need the handle ( IntPtr Type )of an assembly :(
i think this one should is fine ,
IntPtr HINSTANCE =
Marshal.GetHINSTANCE(Assembly.GetExecutingAssembly().GetType().Module);
but i dont understand what the type got to do with this and how is the
module referenced from it,
Jon Skeet [C# MVP] - 27 Feb 2008 08:48 GMT
<snip>
> i think this one should is fine ,
> IntPtr HINSTANCE =
> Marshal.GetHINSTANCE(Assembly.GetExecutingAssembly().GetType().Module);
> but i dont understand what the type got to do with this and how is the
> module referenced from it,
To be honest, I think you're going about things the wrong way. Getting
a Bitmap from an assembly resource is usually a lot easier than this,
usually using the ResourceManager class, or using Bitmap.FromStream by
providing it with the result of a call to
Assembly.GetManifestResourceStream.

Signature
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
World class .NET training in the UK: http://iterativetraining.co.uk
E.D.I - 27 Feb 2008 12:59 GMT
> <snip>
>
[quoted text clipped - 13 lines]
> Jon Skeet - <sk...@pobox.com>http://www.pobox.com/~skeet Blog:http://www.msmvps.com/jon.skeet
> World class .NET training in the UK:http://iterativetraining.co.uk
you were write thanks for the help