Search code examples
visual-studio-2010dllcomponentscustom-componenttoolbox

Visual Studio do not add my component (from a DLL) to the toolbox even if I reference it


As stated in the title, I copied my DLL in Visual Studio project, set it to "content" and "copy always". Added a reference to this DLL and set it to "copy locally".

I successfully managed to instance my component to a form through code but it doesn't appear in the toolbox, really boring.

How can I solve this issue?

If I link directly the DLL project to this project it works, but now I'm treating the DLL as "external" so it's not part of the same solution of the DLL project.


Solution

  • The way I found to make this working is:

    1. Add the dll, reference it
    2. Compile the project
    3. Save the solution and restart visual studio

    And then controls show up in toolbox (not always working, I think is a sort of visual studio bug)