Hi all. I'm trying to use the Bitmap.FromResource() function in C#, but I don't understand the first part of the syntax -> 'System.IntPntr hInstance'.
Could someone explain me what I have to fill in there. I guess it must be some sort of pointer to my program. I tried a couple of things, including 'IntPtr.Zero', but it doesn't work. The program gives me the following error:
System.ArgumentException: Invalid parameter used
Is there someone who knows how to fix this? Thx in advance.
Question
DJ Trauma
Hi all. I'm trying to use the Bitmap.FromResource() function in C#, but I don't understand the first part of the syntax -> 'System.IntPntr hInstance'.
Could someone explain me what I have to fill in there. I guess it must be some sort of pointer to my program. I tried a couple of things, including 'IntPtr.Zero', but it doesn't work. The program gives me the following error:
System.ArgumentException: Invalid parameter used
Is there someone who knows how to fix this? Thx in advance.
Link to comment
https://www.neowin.net/forum/topic/369511-the-bitmapfromresource-function/Share on other sites
6 answers to this question
Recommended Posts