Organizing Windows Form UI Components at Design Time

  • Thread starter Thread starter curtis.johnstone
  • Start date Start date
C

curtis.johnstone

I am designing a UI with Windows Forms and C#. The main part of the UI
(in the center) is context sensitive - it changes based on the user
selections in the navigation bar on the left hand side - the
appropriate center UI elements are made visible or hidden based on the
user selection.

That 'center area' is now very cluttered at design time (in the visual
designer). What is a good technique to avoid this? I would like to use
a tab control and then just hide the actual tabs, but there is no
property on the native tab control to do this...

What is the standard practice for doing this at design time?

Thanks,
Curtis
 
I am designing a UI with Windows Forms and C#. The main part of the UI
(in the center) is context sensitive - it changes based on the user
selections in the navigation bar on the left hand side - the
appropriate center UI elements are made visible or hidden based on the
user selection.

That 'center area' is now very cluttered at design time (in the visual
designer). What is a good technique to avoid this? I would like to use
a tab control and then just hide the actual tabs, but there is no
property on the native tab control to do this...

You may want to use user controls ("Project" -> "Add user control...") for
the different "views".
 
Thanks - that helps. This allows me to design each seperate context
sensitive 'center piece' as an individual component. I still like the
tab-control-type solution so all the UI pieces appear at design time
where they will be show up at run time, but this will suffice.
 
Curtis said:
Thanks - that helps. This allows me to design each seperate context
sensitive 'center piece' as an individual component. I still like the
tab-control-type solution so all the UI pieces appear at design time
where they will be show up at run time, but this will suffice.

Removing a tabcontrol's tabpage headers
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=tabcontrolremoveheaders&lang=en>

IIRC this doesn't disable keyboard navigation between the tabs.
 
Thanks - a bit of hack, but it works. I am surprised they just didn't
support this in the .NET control - maybe it's coming.

I am finding the seperate User Control will promote a cleaner
design....
 
Back
Top