rookie C# equivalent for Java JPanel question..

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

    rookie C# equivalent for Java JPanel question..

    I want to create a form with a few text boxes, labels, etc, and then use
    that form on a tab control, and re-use it as a stand alone dialog, can you
    drop forms onto forms and into dialogs like you can in Java?

    Thanks in advance!

    Derrick


  • Joe Mayo [C# MVP]

    #2
    Re: rookie C# equivalent for Java JPanel question..



    "Derrick" <derrick1298@ex cite.com> wrote in message
    news:%23OoQfBn6 DHA.2760@TK2MSF TNGP09.phx.gbl. ..[color=blue]
    > I want to create a form with a few text boxes, labels, etc, and then use
    > that form on a tab control, and re-use it as a stand alone dialog, can you
    > drop forms onto forms and into dialogs like you can in Java?[/color]

    Hi Derrick,

    It sounds like a Control would be a good solution. Just run the VS.NET
    Windows Control Library wizard and populate it with the controls you need.
    That way, you can drag and drop it wherever you need. Here's a little more
    information on controls:



    Joe
    --
    Welcome to C# Station!  This is a community site for people interested in applying .NET using the C# programming language.  We’ve been around since July 4th 2000 and have continued to grow over the years.  Items of interest include Articles, Books, Links, Documentation,  and Tutorials. More… Source Code If you would like to see an […]



    Comment

    • Philip Rieck

      #3
      Re: rookie C# equivalent for Java JPanel question..

      What you're looking for is a "UserContro l". Add a user control item to your
      project, and you can add items to it just like it was a form. You can then
      use this usercontrol on multiple forms (or even in multiple user controls)



      "Derrick" <derrick1298@ex cite.com> wrote in message
      news:%23OoQfBn6 DHA.2760@TK2MSF TNGP09.phx.gbl. ..[color=blue]
      > I want to create a form with a few text boxes, labels, etc, and then use
      > that form on a tab control, and re-use it as a stand alone dialog, can you
      > drop forms onto forms and into dialogs like you can in Java?
      >
      > Thanks in advance!
      >
      > Derrick
      >
      >[/color]


      Comment

      • Martin Dew

        #4
        Re: rookie C# equivalent for Java JPanel question..

        I think your best best is to make a User control. Then you can host the user
        control on whatever forms you may want, or panels on forms.


        "Derrick" <derrick1298@ex cite.com> wrote in message
        news:%23OoQfBn6 DHA.2760@TK2MSF TNGP09.phx.gbl. ..[color=blue]
        > I want to create a form with a few text boxes, labels, etc, and then use
        > that form on a tab control, and re-use it as a stand alone dialog, can you
        > drop forms onto forms and into dialogs like you can in Java?
        >
        > Thanks in advance!
        >
        > Derrick
        >
        >[/color]


        Comment

        • Derrick

          #5
          Re: rookie C# equivalent for Java JPanel question..

          Sounds like UserControl wins, thanks guys!

          "Derrick" <derrick1298@ex cite.com> wrote in message
          news:%23OoQfBn6 DHA.2760@TK2MSF TNGP09.phx.gbl. ..[color=blue]
          > I want to create a form with a few text boxes, labels, etc, and then use
          > that form on a tab control, and re-use it as a stand alone dialog, can you
          > drop forms onto forms and into dialogs like you can in Java?
          >
          > Thanks in advance!
          >
          > Derrick
          >
          >[/color]


          Comment

          Working...