cmh_rwhelan
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 ...
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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
Thanks for the solution - I can see how it works as you describe it
RW
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
ToolBox-CustomControl-UserContro.jpg
ASKER
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.