G
Guest
All of a sudden (after a reinstall) my Visual Studio .NET (2002) no longer allows me to add user controls to a C# form.
What happens is that if I create a new control, everything looks fine up until the point where I try to drag it from the toolbox into the parent form. Then VS all of a sudden can't seem to find the control. I get the following error message
"The user control '<control name>' could not be loaded. Ensure that the library containing the control has been built and a project reference has been made to the library containing the control. If you have changed the name of the user control, close and re-open the control's designer to update the toolbox item.
This makes me a bit confused, especially since the control is present in the same library as the window to which it is to be added, and the build was successful. (I have tested with a separate library, but that didn't work either.
Adding the same control programmatically to the form works fine, as does adding it manually to the forms designer generated code. What I can't seem to get to work anymore is the dragging of the control from the toolbar to the form
Upgrading to VS.NET 2003 is not an option as the output has to be Framework 1.0, not 1.1
Does this bizarre problem sound familiar to anyone
//ecg
What happens is that if I create a new control, everything looks fine up until the point where I try to drag it from the toolbox into the parent form. Then VS all of a sudden can't seem to find the control. I get the following error message
"The user control '<control name>' could not be loaded. Ensure that the library containing the control has been built and a project reference has been made to the library containing the control. If you have changed the name of the user control, close and re-open the control's designer to update the toolbox item.
This makes me a bit confused, especially since the control is present in the same library as the window to which it is to be added, and the build was successful. (I have tested with a separate library, but that didn't work either.
Adding the same control programmatically to the form works fine, as does adding it manually to the forms designer generated code. What I can't seem to get to work anymore is the dragging of the control from the toolbar to the form
Upgrading to VS.NET 2003 is not an option as the output has to be Framework 1.0, not 1.1
Does this bizarre problem sound familiar to anyone
//ecg