469,280 Members | 1,813 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,280 developers. It's quick & easy.

"NotSupportedException was unhandled + System.Drawing.Bitmap"

Hi buddys,

I have the followinf Bug.........
when i run my application "NotSupportedException was un handled" in "System.Drawing.Icon"
for the following designer code....

Me.picImgMain.Image = CType(resources.GetObject("picImgMain.Image"), System.Drawing.Image)

can u give any idea
Jan 9 '08 #1
3 5323
markmcgookin
648 Expert 512MB
Hi buddys,

I have the followinf Bug.........
when i run my application "NotSupportedException was un handled" in "System.Drawing.Icon"
for the following designer code....

Me.picImgMain.Image = CType(resources.GetObject("picImgMain.Image"), System.Drawing.Image)

can u give any idea
I take it you have dropped a picture onto a form or added a picturebox to a form and added a picture to it?

What is the type of file that you are trying to add to the form?

i.e. .png, .gif, .jpg etc?

Mark
Jan 9 '08 #2
Hi mark,

Thanks for ur reply
I just drag one picture box and load image at design time, It is
".PNG" type image.

and one more thing, it ran successfully before one hour, The bug was raised when i add new form to my project .........
Jan 9 '08 #3
markmcgookin
648 Expert 512MB
Hi mark,

Thanks for ur reply
I just drag one picture box and load image at design time, It is
".PNG" type image.

and one more thing, it ran successfully before one hour, The bug was raised when i add new form to my project .........
So it worked fine, then you added a new, different form and then the original form has stopped working. Have you tried deleting the image and compiling to see if that works? then adding it again and compiling?

Mark
Jan 11 '08 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

6 posts views Thread by Paul Steele | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.