Instance Handle for Bitmap.FromResource
-
How in the F*** do you get the hInstance property of your dll? I need it to use the Bitmap class' FromResource method. Thanks in advance. Jamie Nordmeyer Portland, Oregon, USA
-
How in the F*** do you get the hInstance property of your dll? I need it to use the Bitmap class' FromResource method. Thanks in advance. Jamie Nordmeyer Portland, Oregon, USA
I am not sure of the .NET way, but perhaps GetModuleHandle and P/Invoke Nish
Author of the romantic comedy Summer Love and Some more Cricket [New Win]
-
How in the F*** do you get the hInstance property of your dll? I need it to use the Bitmap class' FromResource method. Thanks in advance. Jamie Nordmeyer Portland, Oregon, USA
Look at the Marshal class, IIRC there is a property/method to get the HINSTANCE. James
-
How in the F*** do you get the hInstance property of your dll? I need it to use the Bitmap class' FromResource method. Thanks in advance. Jamie Nordmeyer Portland, Oregon, USA
Take a look here. Hope it helps. John