The "No components to place in the toolbox" issue occurs when you add a custom DLL, such as a. NET type, to a toolbox in VS2012, VS2013, with "Select items". For example, online editing tools: Freetextbox
Workaround:
There is a problem with the DLL in the "1" package
1. When writing an extension class for the control library, there is no public keyword, such as:
1 View plaincopyprint? 2 Public class MyListView:System.Windows.Forms.ListView 3 { 4public mylistview () 5 { 6 7 } 8 }
If you remove public, you can generate a DLL, but you will be prompted when you add it to the user control.
2. When writing an extension class for a control library, there is no empty constructor, even if there is an empty constructor for the constructor with parameters, such as:
1View Plaincopyprint?2 Public classFirstcontrol:control3 { 4 PublicFirstControl ()5 { 6 } 7 PublicFirstControl (stringstrtitle)8 { 9 } Ten}
"2" high version of VS2012, 2013 and other problems
vs2012 and 2010 Add controls, select item, browse, choose component Type, browse, select DLL ... However, the VS2010 can identify the control in the DLL, but vs2012 "there is no component to put on the toolbox" problem, there is a simple solution:
Select the DLL to add by mouse, hold down the left mouse button, drag the DLL directly to the Toolbox, tough bar!! <>
. NET DLL "No components can be placed in the toolbox"-freetextbox