Large forms with tabs and tons of controls...


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Large forms with tabs and tons of controls...

  1. #1
    Jeff Johnson Guest

    Large forms with tabs and tons of controls...


    I've got a huge form with several tabs and lots of controls...

    My question is... what's the best way to 'hide' stuff and only load it when
    the user is looking at the tab.


    (In Access, we'd use a 'subform' on top of the tab control and then the
    tab click would load a new 'subform.')

    I'd thought to programatically place the controls on as they are needed,
    but then I'd loose the use of the forms designer.

    What's the best way to handle this?

  2. #2
    Rune Bivrin Guest

    Re: Large forms with tabs and tons of controls...

    Without having tried it in .NET, I'd create a Usercontrol for each tab, and
    create it on demand.

    Rune Bivrin

    "Jeff Johnson" <jeff.johnson@nospam.electricexpress.com> wrote in
    news:3d63ab11$1@10.1.10.29:

    >
    > I've got a huge form with several tabs and lots of controls...
    >
    > My question is... what's the best way to 'hide' stuff and only load it
    > when the user is looking at the tab.
    >
    >
    > (In Access, we'd use a 'subform' on top of the tab control and then
    > the tab click would load a new 'subform.')
    >
    > I'd thought to programatically place the controls on as they are
    > needed, but then I'd loose the use of the forms designer.
    >
    > What's the best way to handle this?
    >



  3. #3
    Ian Lowe Guest

    Re: Large forms with tabs and tons of controls...

    Hi, Jeff,

    > My question is... what's the best way to 'hide' stuff and only load it

    when
    > the user is looking at the tab.


    You can add the controls from a particular tab to a Panel control. All
    controls in a Panel respect the Panel's settings, including Visible.
    Therefore, set all Panels' Visible property to False and set the current
    tab's Panel's Visible property to True.

    Hope this helps,

    Ian.



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center