UserControl doesn't add to "My User Controls" tab automatically.

B

babylon

I created a class which inherits from UserControl..
However, I can't find it in the "My User Controls" tab in designer view...

How can i add it back myself?

thx...
 
J

Jan Tielens

You can drop the assembly from the Windows Explorer onto your Toolbox. This
will show your custom control... I know this is not the best solution, but
this always works.

--
Greetz

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

babylon

is that different from the "My User Controls" tab?
both the user control and the application are in the same project

and i tried to compile the solution and try to add the assembly (.exe) to
the toolbox
and add the usercontrol to the application

then i add a button to the usercontrol...
the user control in the applicaiton don't show up the button..

but it's ok if i add the user control from "My User Controls"...

i know it works if i don't add the control in designer view.......
so...any solution??


thx
 
J

Jan Tielens

Did you compile the solution, after you've added the button control? Maybe
closing and opening the form could work?
 

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