same form instead of using so many forms is possible?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • akbbhatt
    New Member
    • Aug 2008
    • 5

    same form instead of using so many forms is possible?

    i am told to develop one windows application for which i should use same form to display everything instead of navigating to a new form. is it possible guys? pls help me.
  • shweta123
    Recognized Expert Contributor
    • Nov 2006
    • 692

    #2
    Hi,

    You can use Tab Control if you want to include multiple forms in one form. Please read This article about how to use tab control in your apllication. The article is in C#.


    Originally posted by akbbhatt
    i am told to develop one windows application for which i should use same form to display everything instead of navigating to a new form. is it possible guys? pls help me.

    Comment

    • tlhintoq
      Recognized Expert Specialist
      • Mar 2008
      • 3532

      #3
      Plan B could in theory...
      Have a set of methods to clear the contents of the form and manually position controls as wanted, depending on some criteria, like which menu choice a user selected.

      Its not the way one would do it in th real world, but the wording of your question suggests this is a homework assignment geared toward teaching you a something specific about the creation of controls.

      Comment

      • joedeene
        Contributor
        • Jul 2008
        • 579

        #4
        Originally posted by akbbhatt
        i am told to develop one windows application for which i should use same form to display everything instead of navigating to a new form. is it possible guys? pls help me.
        another way is to have a groupbox, or panel, anything, and when u click a button or want to change it, i know they have a .visible property, and set all the other panels or groupbox to false with the other controls, and the only panel you want, then set it true. i think they have a .bringtofront() function too, but not positive, and this of course brings it to the top-most layer.

        joedeene

        Comment

        Working...