Why doesn't my user control gets added to My User Control Tab

H

Henke

I added a project to my solution that contains a user control. Now I 'd like
to add the user control from that project to a form in my solution. The
problem is that the control doesn't gets added to the My User Control tab.

Any ideas?

Thanks in advance, Henke!
 
J

Jan Tielens

Just drag and drop the DLL from your user control project into the toolbox.
By doing so the user controls in the DLL will show up in the toolbox.

--
Greetz

Jan Tielens
________________________________
Read my weblog: http://weblogs.asp.net/jan
 
H

Henke

Hi, and thanks for your answer. That could work but if I do like that I only
add the dll from that specific directory. It doesn't get update when I
change from Debug to Release and so on. All my other User Controls are
displayed in the Tab, with a nice lite User Control Icon. When you drag the
dll-file to the tab an other icon is displayed.

/Henke
 
J

Jan Tielens

Agreed... I had your problem some time ago too. My quick work-around was to
drop the dll on the toolbox... I hope somebody else has a solution.

--
Greetz

Jan Tielens
________________________________
Read my weblog: http://weblogs.asp.net/jan
 
C

Codemonkey

I've noticed this happening sometimes if I have a usercontrol project in the
solution with my main windows forms project. Sometimes the usercontrol's
just disappear from the "My User Controls" tab.

One solution that I've seen in the past (which works most of the time, but
not all the time) is to:

1) Close all designer windows
2) Build your solution
3) Open the designer for the usercontrol
4) Change something, then change it back (so it prompts you to save the
file)
5) Save and close the designer.
6) Open up one of the forms in your other project.
7) Cross your fingers and hope the control appears in the "My User Controls"
tab ;)

Hope this helps,

Trev.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top