I have a custom control DLL. How can I add these custom controls to VS2008 tool box programatically?
Asked
Active
Viewed 4.8k times
3 Answers
47
- Right-click on toolbox
- select "Choose Items"
- browse to your DLL.
- Add the items

jgauffin
- 99,844
- 45
- 235
- 372
-
FYI, still valid in vs2015. – Liz Sep 06 '16 at 12:56
-
1But, It is asked how to add it `programatically`! – S.Serpooshan Nov 13 '17 at 06:14
-
1What does "programatically" mean in this situation anyway? This answer is perfectly fine. – Broots Waymb Nov 28 '17 at 14:11
-
I would interpret **programatically** as done by a program, not just done by a user clicking around within a program. That is; I run a program or script and when it has completed the desired result has occurred. – Gary Aug 24 '18 at 15:25
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
-
2Links 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

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