[Mono-dev] Bitmap.FromResource question
robertj at gmx.net
Fri Feb 5 05:48:18 EST 2010
On 05.02.2010 08:29, Paul wrote:
> I have some code targetted for .NET 3.5. It compiles fine, but when I
> come to run the code, it borks at BitMap.FromResource complaining that
> it has not been implemented.
> I've checked the API status page and apparently it has. My question is,
> has it or is the API status page wrong?
> Code line looks like this
> pictureBox1.Image = BitMap.FromResource(IntPtr.Zero, res_name);
> which looks correct according to MSDN.
BitMap.FromResource is supposed to load stuff from *Windows resources*.
That's the reason why the method is not implemented in Mono.
Windows resources are != managed resources and probably not the
place you've stored your bitmaps.
More information about the Mono-devel-list