ResourceManager.GetObject System.NotSupportedException

  • Thread starter Thread starter John Kraft
  • Start date Start date
J

John Kraft

..NET CF 2.0

I am attempting to assign an image to a picturebox object. Whenever I
attempt to run the application, I get a System.NotSupportedException
on the ResoureManager.GetObject method. I have tried loading the
image at design time as well, but I get the same error message in the
generated code.

Do any of you intelligent folks have any idea why the CF won't let me
load resources in this manner?
 
What type of image is it? Size? COlor depth? etc.

The image itself is a 64x64 png. However, it's not just that image,
it's any image I try to load. I've tried many different combinations:
hi res, low res, bmp, gif, png, jpeg. None of them work. I get the
exact same error everytime... that the GetObject method is not
supported.

I can open the same images manually by loading them from a file into a
new bitmap at runtime, but I can't do it at design time. It's not a
showstopper for me, but it is rather annoying.

Thanks,
ctacke.
 
Back
Top