Click here to Skip to main content
15,909,651 members
Please Sign up or sign in to vote.
2.00/5 (2 votes)
See more:
In .NET framework Windows form , I dont want to add certain component to certain project but I want all the custom components to be visible for any newly created app just like the default Microsoft components

What I have tried:

I want this so my project does not has so many dependencies but only the components I add to the project

How I can do that ?
Posted

If you right click on the toolbox you will see a menu item called Choose Items, click it.
In the dialog box that pops up you will see some tabs, go to the relevant tab and click Browse... (bottom right).
Choose the assembly containing your component(s).

The component(s) should now appear in the toolbox.

I honestly can't remember if that means they will appear in every project/solution or just the one that you are working on, that's easy to test though.
Exactly what appears in the toolbox also depends on the type of project, the .Net version etc. and whether the component(s) that you are trying to add are built for the same version.
 
Share this answer
 
If what you are asking is how do you add custom controls to the control toolbox, the Visual Studio documentation describes the process of adding custom controls to it. Toolbox window - Visual Studio (Windows) | Microsoft Learn[^]
 
Share this answer
 

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