quick question...

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • craig

    quick question...

    Quick question for the experts...

    Whenever I set the Image property of a PictureBox on one of my forms to a
    PNG graphic file on my hard drive, I get the following runtime error when I
    try to run the app:

    Exception Type: System.Resource s.MissingManife stResourceExcep tion
    Message: Could not find any resources appropriate for the specified culture
    (or the neutral culture) in the given assembly.

    Does anyone have any idea what this error message means?


  • Bob Powell [MVP]

    #2
    Re: quick question...

    Have you set this through the IDE or by hand?

    --
    Bob Powell [MVP]
    Visual C#, System.Drawing

    Answer those GDI+ questions with the GDI+ FAQ


    The GDI+ FAQ RSS feed: http://www.bobpowell.net/faqfeed.xml
    Windows Forms Tips and Tricks RSS: http://www.bobpowell.net/tipstricks.xml
    Bob's Blog: http://bobpowelldotnet.blogspot.com/atom.xml






    "craig" <e@mail.com> wrote in message
    news:uCFauqnnEH A.4068@tk2msftn gp13.phx.gbl...[color=blue]
    > Quick question for the experts...
    >
    > Whenever I set the Image property of a PictureBox on one of my forms to a
    > PNG graphic file on my hard drive, I get the following runtime error when[/color]
    I[color=blue]
    > try to run the app:
    >
    > Exception Type: System.Resource s.MissingManife stResourceExcep tion
    > Message: Could not find any resources appropriate for the specified[/color]
    culture[color=blue]
    > (or the neutral culture) in the given assembly.
    >
    > Does anyone have any idea what this error message means?
    >
    >[/color]


    Comment

    • craig

      #3
      Re: quick question...

      Hi Bob,

      I set it through the IDE using the properties window.

      "Bob Powell [MVP]" <bob@_spamkille r_bobpowell.net > wrote in message
      news:eqa7jmxnEH A.2680@TK2MSFTN GP15.phx.gbl...[color=blue]
      > Have you set this through the IDE or by hand?
      >
      > --
      > Bob Powell [MVP]
      > Visual C#, System.Drawing
      >
      > Answer those GDI+ questions with the GDI+ FAQ
      > http://www.bobpowell.net/gdiplus_faq.htm
      >
      > The GDI+ FAQ RSS feed: http://www.bobpowell.net/faqfeed.xml
      > Windows Forms Tips and Tricks RSS: http://www.bobpowell.net/tipstricks.xml
      > Bob's Blog: http://bobpowelldotnet.blogspot.com/atom.xml
      >
      >
      >
      >
      >
      >
      > "craig" <e@mail.com> wrote in message
      > news:uCFauqnnEH A.4068@tk2msftn gp13.phx.gbl...[color=green]
      >> Quick question for the experts...
      >>
      >> Whenever I set the Image property of a PictureBox on one of my forms to a
      >> PNG graphic file on my hard drive, I get the following runtime error when[/color]
      > I[color=green]
      >> try to run the app:
      >>
      >> Exception Type: System.Resource s.MissingManife stResourceExcep tion
      >> Message: Could not find any resources appropriate for the specified[/color]
      > culture[color=green]
      >> (or the neutral culture) in the given assembly.
      >>
      >> Does anyone have any idea what this error message means?
      >>
      >>[/color]
      >
      >[/color]


      Comment

      • Weinand Daniel

        #4
        Re: quick question...

        this error is normaly generated if your resource manager is trying to
        find some resources for
        a not specified culture.
        in your case i cant imagine where and why this error is generated.
        watch out your exe file with ILDSAM and look how your resources are binded.

        perhaps there is something wrong.
        otherwise post code to see whats going on, or try another picture format.
        e.g. *.bmp oder *.jpg

        greetz


        craig schrieb:
        [color=blue]
        >Quick question for the experts...
        >
        >Whenever I set the Image property of a PictureBox on one of my forms to a
        >PNG graphic file on my hard drive, I get the following runtime error when I
        >try to run the app:
        >
        >Exception Type: System.Resource s.MissingManife stResourceExcep tion
        >Message: Could not find any resources appropriate for the specified culture
        >(or the neutral culture) in the given assembly.
        >
        >Does anyone have any idea what this error message means?
        >
        >
        >
        >[/color]

        Comment

        Working...