I created a user control. It compiles and builds a DLL successfully.
The control does not appear in the Toolbox.
If I right-click the Toolbox and select Choose Items... and browse for my DLL, it still doesn't appear in the Toolbox.
I have made a test program that adds an instance of the control dynamically and the control behaves exactly as I expect it to, so why can I not add it to the Toolbox?
This is in VS2005 team Edition for Software Developers.
Bob Powell [MVP] wrote:
If the project has compiled successfully the user controls should appear in
22-Jun-08
If the project has compiled successfully the user controls should appear in
the toolbox automatically.
If you want to build these user controls in a DLL and use them on a page in
another application then you will need to add them to the toolbox by
right-clicling the toolbox, select "Choose items..." and then browse to the
DLL containing your controls. Select it and then chose the controls you wish
to see.
--
--
Bob Powell [MVP]
Visual C#, System.Drawing
Ramuseco Limited .NET consulting
http://www.ramuseco.com
Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm
Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm
All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
Previous Posts In This Thread:
adding usercontrol to Toolbox
Hi All,
I have two custom usercontrols in my project but how can i use them on a
windows form ?
I can not see them on the toolbox and i can not drag and drop from Solution
Explorer ..
Thanks for your help,
If the project has compiled successfully the user controls should appear in
If the project has compiled successfully the user controls should appear in
the toolbox automatically.
If you want to build these user controls in a DLL and use them on a page in
another application then you will need to add them to the toolbox by
right-clicling the toolbox, select "Choose items..." and then browse to the
DLL containing your controls. Select it and then chose the controls you wish
to see.
--
--
Bob Powell [MVP]
Visual C#, System.Drawing
Ramuseco Limited .NET consulting
http://www.ramuseco.com
Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm
Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm
All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
Submitted via EggHeadCafe - Software Developer Portal of Choice
Creating a WPF Custom Control
http://www.eggheadcafe.com/tutorial...9-c0b45fb68b78/creating-a-wpf-custom-con.aspx