. NET DLL "No components can be placed in the toolbox"-freetextbox

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.