User Controls in Toolbox

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Adam Nowotny

    #1

    User Controls in Toolbox

    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 ?

    --
    Adam
  • Kent Boogaart

    #2
    Re: User Controls in Toolbox

    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

    "Adam Nowotny" <adam@SPAM.logo soft.pl> wrote in message
    news:409b9d12@n ews.home.net.pl ...[color=blue]
    > I've created library with some "user controls" and they all showed up in[/color]
    the[color=blue]
    > 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[/color]
    another[color=blue]
    > computer. The problem is they don't show up in the toolbox.
    > What's wrong ?
    >
    > --
    > Adam[/color]


    Comment

    • Adam Nowotny

      #3
      Re: User Controls in Toolbox

      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.UserContr ol

      (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 ?

      --
      Adam Nowotny


      Kent Boogaart wrote:
      [color=blue]
      > 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
      >
      > "Adam Nowotny" <adam@SPAM.logo soft.pl> wrote in message
      > news:409b9d12@n ews.home.net.pl ...
      >[color=green]
      >>I've created library with some "user controls" and they all showed up in[/color]
      >
      > the
      >[color=green]
      >>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[/color]
      >
      > another
      >[color=green]
      >>computer. The problem is they don't show up in the toolbox.
      >>What's wrong ?
      >>
      >>--
      >>Adam[/color]
      >
      >
      >[/color]

      Comment

      • Kent Boogaart

        #4
        Re: User Controls in Toolbox

        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

        "Adam Nowotny" <adam@SPAM.logo soft.pl> wrote in message
        news:409f5c3b$1 @news.home.net. pl...[color=blue]
        > OK, i see VS adds user controls to the toolbox when opening them in design[/color]
        mode.[color=blue]
        > But it doesn't add inherited controls. I've created some of them as user
        > controls as:
        >
        > Public Class Button
        > Inherits System.Windows. Forms.UserContr ol
        >
        > (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 ?
        >
        > --
        > Adam Nowotny
        >
        >
        > Kent Boogaart wrote:
        >[color=green]
        > > Adam,
        > >
        > > VS.NET maintains the toolbox setup on a per-machine (possibly per-user,[/color][/color]
        I[color=blue][color=green]
        > > don't know) basis. Therefore you will have to add your controls to the
        > > VS.NET toolbox on the other PC.
        > >
        > > Kent
        > >
        > > "Adam Nowotny" <adam@SPAM.logo soft.pl> wrote in message
        > > news:409b9d12@n ews.home.net.pl ...
        > >[color=darkred]
        > >>I've created library with some "user controls" and they all showed up in[/color]
        > >
        > > the
        > >[color=darkred]
        > >>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[/color]
        > >
        > > another
        > >[color=darkred]
        > >>computer. The problem is they don't show up in the toolbox.
        > >>What's wrong ?
        > >>
        > >>--
        > >>Adam[/color]
        > >
        > >
        > >[/color][/color]


        Comment

        Working...