User Controls in Toolbox

A

Adam Nowotny

I've created library with some "user controls" and they all showed up in the
toolbox, so it is easy to drag them to a form in Forms Designer.
Now we want to use the controls in our main project which is located on another
computer. The problem is they don't show up in the toolbox.
What's wrong ?
 
K

Kent Boogaart

Adam,

VS.NET maintains the toolbox setup on a per-machine (possibly per-user, I
don't know) basis. Therefore you will have to add your controls to the
VS.NET toolbox on the other PC.

Kent
 
A

Adam Nowotny

OK, i see VS adds user controls to the toolbox when opening them in design mode.
But it doesn't add inherited controls. I've created some of them as user
controls as:

Public Class Button
Inherits System.Windows.Forms.UserControl

(at this point VS added this to toolbox on my computer) and then changed
MANUALLY (is there any other way to inherit from built-in controls?) to:

Public Class Button
Inherits System.Windows.Forms.Button

Now such controls don't show up on the other computer :/
How to solve this ?
 
K

Kent Boogaart

Adam,

As I said, you will have to add the controls to the toolbox manually on the
other machine. Why is this a problem?

Kent
 

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