Link to home
Start Free TrialLog in
Avatar of cmh_rwhelan
cmh_rwhelanFlag for Canada

asked on

Add a custom control (component) to my Toolbox

I have a new custom control called CustomListBox,  I have added it to a Project in my VS 2008 Windows Forms appllication.   It is saved as CustomListBox.cs.
I would like to add it to my Controls toolboxin the VS IDE, but when I try to Choose Items in the Toolbox, it is ,of course, looking for a .dll, not a .cs project file.

What's the trick??

Thanks  ...
SOLUTION
Avatar of Adam Menkes
Adam Menkes
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of cmh_rwhelan

ASKER

Still missing something:

What I am missing is the DLL - I created the CustromChecked List box as a New Item within a Project., so it is saved in the Project's directory as a .cs file.
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Never mind - I have it - I just wasn't looking carefully - it was already added to the Toolbox, but was out of alphabetical order - duh...

Thanks for the solution - I can see how it works as you describe it

RW
Avatar of Mike Tomlinson
If the control is physically added to your project then just BUILD it and then new control should appear at the top of the ToolBox:
ToolBox-CustomControl-UserContro.jpg