-
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?
-
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?
>
-
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
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks