Click here to Skip to main content
15,570,202 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
I am using VS2010 (Vb.Net) with .Net framework 4.0.
I have made a classlibrary project with a number of custom controls. When I put the source of this custom control project in a solution with another project I get all these cutom controls in the toolbox rightaway.

However when I make a dll of this classlibrary custom control project and put it in the solution, I don't see these custom controls in the toolbox. Ofcourse I referenced the dll and compiled the project.

In the "tools\options\windows form designer" settings I also made sure that AutoToolboxPopulate property is set to True.
In the custom control class itself I have added the setting <toolboxitem(true)>, however this is said to be the default.

Furthermore I know you can manually add toolbox items by right clicking on the toolbox and through "choose items" browse to the dll and add them. However then they are also not neatly categorized, but added with the common controls.
But this is not the way I want to do it. I want the custom controls from the dll to show up the same way as when I add the classlibrary source code of the custom control project to the solution.
In my opinion it should be enough to reference the dll. How else could you make a programmer-friendly distributable class library ?

Does anyone know why this doesn't work with the dll ? Am I missing something here ?
Thanks in advance.

Wietze
Posted
Updated 15-Nov-14 23:01pm
v2
Comments
Thava Rajan 17-Nov-14 0:11am    
well you need to create a setup and deploy to your end user system
Wietze Bron 17-Nov-14 12:24pm    
Thanks for your reply.
The dll in this case is not meant for end-users but for developers.
Does the set-up procedure make the custom controls visible for the developers ?
I thought the advantage of .Net was that you should be able to run your exe or dll from your default folder.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900