Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Parameter not valid??

Parameter not valid??

Scheduled Pinned Locked Moved C#
csharpvisual-studioquestionlearning
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    hristo1977
    wrote on last edited by
    #1

    Hi! Moved my project from school to my home PC using a USB. Done that many times and it have worked. Now I get this message: Parameter is not valid. C:\Documents and Settings\Peter\Mina dokument\Visual Studio 2005\Projects\Bamse\Bamse\Form2.Designer.cs 111 0 And it points to this line: this.picBoxPase.BackgroundImage = global::Bamse.Properties.Resources.påse; The resource "påse" is in my project folder. Any ideas?

    Newbie untill I die! :-)

    C C 2 Replies Last reply
    0
    • H hristo1977

      Hi! Moved my project from school to my home PC using a USB. Done that many times and it have worked. Now I get this message: Parameter is not valid. C:\Documents and Settings\Peter\Mina dokument\Visual Studio 2005\Projects\Bamse\Bamse\Form2.Designer.cs 111 0 And it points to this line: this.picBoxPase.BackgroundImage = global::Bamse.Properties.Resources.påse; The resource "påse" is in my project folder. Any ideas?

      Newbie untill I die! :-)

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      It won't compile ? This line is in your auto generated code, so delete it and set the property again in the IDE and see how you go.

      Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

      1 Reply Last reply
      0
      • H hristo1977

        Hi! Moved my project from school to my home PC using a USB. Done that many times and it have worked. Now I get this message: Parameter is not valid. C:\Documents and Settings\Peter\Mina dokument\Visual Studio 2005\Projects\Bamse\Bamse\Form2.Designer.cs 111 0 And it points to this line: this.picBoxPase.BackgroundImage = global::Bamse.Properties.Resources.påse; The resource "påse" is in my project folder. Any ideas?

        Newbie untill I die! :-)

        C Offline
        C Offline
        CoolASL
        wrote on last edited by
        #3

        Hi hristo1977, Well it happened with me once too. When you specify a resource in your project, VS does not copy that resource to your project. It just takes a reference of that resource which is actually present on your hard drive. If you have chose the option to embed that resource in your build, then that resource is embedded during compile time. Meaning, at no time, it is actually included into your project. So, you need to check if the resource it points to is actually present on your drive. Click the resource and check out its path in the properties window and make sure it points to the right thing. Hopefully it was helpful. :)

        *** Who said nothing is impossible? I have been doing it for a long time ***

        H 1 Reply Last reply
        0
        • C CoolASL

          Hi hristo1977, Well it happened with me once too. When you specify a resource in your project, VS does not copy that resource to your project. It just takes a reference of that resource which is actually present on your hard drive. If you have chose the option to embed that resource in your build, then that resource is embedded during compile time. Meaning, at no time, it is actually included into your project. So, you need to check if the resource it points to is actually present on your drive. Click the resource and check out its path in the properties window and make sure it points to the right thing. Hopefully it was helpful. :)

          *** Who said nothing is impossible? I have been doing it for a long time ***

          H Offline
          H Offline
          hristo1977
          wrote on last edited by
          #4

          Hi! The resource is there! :-( But I still get that damn message.

          Newbie untill I die! :-)

          C 1 Reply Last reply
          0
          • H hristo1977

            Hi! The resource is there! :-( But I still get that damn message.

            Newbie untill I die! :-)

            C Offline
            C Offline
            CoolASL
            wrote on last edited by
            #5

            Try deleting that reference from the project and include it afresh. That might work. :~

            *** Who said nothing is impossible? I have been doing it for a long time ***

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups