I have one dll of usercontrol and I add to it to the references in my project. And now I want to access this usercontrol from toolbox but it does not appear in the toolbox. And I can access them by writing code, but I want it in toolbox and want to use by just dragging it to the form.
Asked
Active
Viewed 3.3k times
26
-
Does this answer your question? [How do I add my new User Control to the Toolbox or a new Winform?](https://stackoverflow.com/questions/8931328/how-do-i-add-my-new-user-control-to-the-toolbox-or-a-new-winform) – StayOnTarget Jul 25 '23 at 14:43
5 Answers
24
You need to right click on the toolbox, select "Choose Items.." and browse to the dll containing the control.

Dave7896
- 829
- 5
- 11
-
1And added control will be located in which category like, all windows forms or common controls? – Harikrishna Jan 20 '10 at 12:28
-
if i choose the dll from the debug folder does it point to the release dll automatically when i distribute my app? – Jeroen Feb 18 '11 at 08:48
-
I ran into a BadImageFormatException when try your solution. My "AutoPopulateToolbox" setting is set to "True," and I've also Reset my Toolbox – Kevin Meredith Jul 10 '12 at 18:26
1
Drag & Drop the dll (from explorer) to the desired category (in VS 2012).

Andrew Dennison
- 1,069
- 11
- 9
0
Right Click on empty field of toolbox and select "choose item" and then go to your project folder and select your dll file (or EXE file)

Reza Majidi
- 1
- 1
0
The user control must have a default constructor. Otherwise it is not shown in the choose items pop-up. It might be also necessary to rebuild solution to add it to toolbox.

Rahul Sutar
- 62
- 8