copy User Control between projects

E

Eric

Using VB.NET (2003)

I've got this VB project where I've defined 1 form, and 1 user control. If I
go to the form, I can see in my toolbox that I can drag-and-drop the user
control onto the form.

Now, I make another .NET project with a form, copy and paste the user
control files (in explorer) from the old project, it compiles just fine, but
now it is not insertable onto the main form from the toolbox. It doesn't
even show up in the toolbox. Anybody know why not?

Thanks! If you email reply, remove the "boots" from the email
 
H

Herfried K. Wagner [MVP]

* "Eric said:
I've got this VB project where I've defined 1 form, and 1 user control. If I
go to the form, I can see in my toolbox that I can drag-and-drop the user
control onto the form.

Now, I make another .NET project with a form, copy and paste the user
control files (in explorer) from the old project, it compiles just fine, but
now it is not insertable onto the main form from the toolbox. It doesn't
even show up in the toolbox. Anybody know why not?

Why not add the usercontrol to a control library and reference this
library from both projects?
 

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