"NotSupportedException was unhandled + System.Drawing.Bitmap"

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • wingsganesh
    New Member
    • Nov 2007
    • 16

    "NotSupportedException was unhandled + System.Drawing.Bitmap"

    Hi buddys,

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

    Me.picImgMain.I mage = CType(resources .GetObject("pic ImgMain.Image") , System.Drawing. Image)

    can u give any idea
  • markmcgookin
    Recognized Expert Contributor
    • Dec 2006
    • 648

    #2
    Originally posted by wingsganesh
    Hi buddys,

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

    Me.picImgMain.I mage = CType(resources .GetObject("pic ImgMain.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

    Comment

    • wingsganesh
      New Member
      • Nov 2007
      • 16

      #3
      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 .........

      Comment

      • markmcgookin
        Recognized Expert Contributor
        • Dec 2006
        • 648

        #4
        Originally posted by wingsganesh
        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

        Comment

        Working...