20

I have a custom control DLL. How can I add these custom controls to VS2008 tool box programatically?

Mark Seemann
  • 225,310
  • 48
  • 427
  • 736
malli
  • 201
  • 1
  • 2
  • 3

3 Answers3

47
  1. Right-click on toolbox
  2. select "Choose Items"
  3. browse to your DLL.
  4. Add the items
jgauffin
  • 99,844
  • 45
  • 235
  • 372
3

There are several ways to do it:

As explained at MSDN Tutorial: Installing Controls By Using the Toolbox Controls Installer you do it from an installer.

There's also another possibility using a command line program available on CodePlex. You use this application with your favorite installer or you can invoke it manually.

Stécy
  • 11,951
  • 16
  • 64
  • 89
  • 2
    Links may have changed. First one directs to: Visual Studio 2005 Retired documentation – Gary Aug 24 '18 at 15:26
2

In my Visual Studio 2019 I don't get any "choose items" when right-clicking "Toolbox".

I had to use Tools / Choose Toolbox Items

enter image description here

marsh-wiggle
  • 2,508
  • 3
  • 35
  • 52
  • Thank you though for showing the other way to add items! I will say that in my version of 2019, I did have Choose Items on the toolbox. I wonder if maybe you were still initializing, or hadn't had a solution/project loaded up? You don't have the default controls in your Toolbox, so the Toolbox isn't full loaded for whatever reason. – Amanda Jul 14 '20 at 16:42