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

Francesco Belladonna picture Francesco Belladonna · Jan 7, 2011 · Viewed 28.3k times · Source

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.

Answer

bluish picture bluish · Dec 19, 2013

I had this problem with @AndrewFinnell's solution:

There are no components in 'c:....\XXXX.dll' that can be placed on the toolbox.

So I solved with drag and drop:

  • open Windows explorer and navigate to the DLL
  • drag the DLL and drop it on Visual Studio in the Toolbox, exactly where you want your components to appear.

I also realized that some components may have compatibility issues with certain .NET Framework versions. For instance A Professional Calendar/Agenda View That You Will Use seems not to work with .NET 4.5, while it does with .NET 4.