471,604 Members | 1,510 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,604 software developers and data experts.

"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 5411
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 XIAOLAOHU | last post: by
reply views Thread by leo001 | last post: by
reply views Thread by CCCYYYY | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.