Unable to Site User Control

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
In my WinForms applications, if I create a new User Control and build my project, the User control appears in the toolbox window.
However, if I try and drag the control onto a form, I get the error "Failed to load toolbox item UserControl1. It will be removed from the toolbox." And it is removed from the toolbox.
This is without adding any controls or code to the control whatsoever. I tried playing with user controls some time in the past on other projects and got the exact same result.
I searched the web but, while I found quite a few similar questions, all the answers seemed to be related to having user controls in other assemblies.
Im using Visual Studio 2010. Id love some ideas on what else I should try.
<
Jonathan Wood â http://www.blackbeltcoder.com Free Developer Articles and Source Code

View the full article
 
Back
Top