6

I want to create a CustomControl in toolbox in my C# application

Fiasco Labs
  • 6,457
  • 3
  • 32
  • 43
Stijn Leenknegt
  • 1,317
  • 4
  • 12
  • 22
  • 1
    Possible duplicate, check here...http://stackoverflow.com/questions/288047/user-controls-not-showing-up-in-the-toolbox – Aaron McIver Dec 30 '10 at 17:10
  • Does this answer your question? [How to put a UserControl into Visual Studio toolBox](https://stackoverflow.com/questions/3446429/how-to-put-a-usercontrol-into-visual-studio-toolbox) – StayOnTarget Jul 25 '23 at 14:42

1 Answers1

13

If your component is within the project, you can have them automatically added to the toolbox. Go to: Tools -> Options -> Windows Forms Designer and enable the "AutoToolboxPopulate" option.

If it's in a separate solution, you can build the control library, and drag and drop on the toolbox to add the components.

Rowland Shaw
  • 37,700
  • 14
  • 97
  • 166
  • 5
    No matter which of Rowland's options you use make sure to build your control first. It won't show up at the toolbox if it isn't built yet. – Tobias Valinski May 15 '13 at 14:09