views:

15

answers:

0

When I open the form in the application, I am seeing an error for each user control in the project.

Warning 13 The variable 'usercontrol1' is either undeclared or was never assigned. C:\Projects\MyApp\src\MyApp\FormMain.Designer.cs 202 0

and a matching

Warning 6 Could not find type 'MyCompany.Controls.MyApp.usercontrol1'. Please make sure that the assembly that contains this type is referenced. If this type is a part of your development project, make sure that the project has been successfully built. 0 0

The form and the user controls are in the same project.

If I make a new form, and do a fresh compile I can see the MyApp Components group in the VS 2008 toolbox. And if I try to use one of the controls in the new form I get the following error:

Failed to load toolbox item 'usercontrol1'. It will be removed from the toolbox.

Doesn't seem to be any rhyme or reason to it, no method just madness.

related questions