Parameter not valid??
-
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! :-)
-
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! :-)
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
-
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! :-)
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 ***
-
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 ***
Hi! The resource is there! :-( But I still get that damn message.
Newbie untill I die! :-)
-
Hi! The resource is there! :-( But I still get that damn message.
Newbie untill I die! :-)