ResourceManager.GetObject System.NotSupportedException

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?
 
J

John Kraft

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top