• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 340
  • Last Modified:

Several component layout to the same form

In my winform app. I would like to add another layout option to a form.
That means the same form with another arrangment of visual components.
What is the proper way for doing this?
0
yaron89
Asked:
yaron89
1 Solution
 
NavneetCommented:
Hi!

What are you trying to achieve?

Thanks!
0
 
yaron89Author Commented:
I have a form for voice recording. In some cases I would like that the GUI will look different.
I can change controls by code but I am wondering if there is a better way for doing this.
0
 
saraganiCommented:
You can have the 2 GUIs on 2 different UserControls.
If you are working with MVP, then when you change the user control on your GUI, give it the Presenter.

The presenter doesn't need to know which GUI is using him. The Gui just called the right functions on the Presenter.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
saraganiCommented:
Btw, if you were not already using WinForms, I would have suggested you to use WPF cause it is way easier to do it in WPF using "ViewModel First", DataTemplate and DataTemplateSelector.
0
 
dj_alikCommented:
WINFORM LAYOUT OPTIONS:
FlowLayoutPanel and TableLayoutPanel
http://www.philosophicalgeek.com/2008/12/12/an-easy-stack-layout-panel-for-winforms/
0
 
dexion432Commented:
try tabs
0
 
NavneetCommented:
Hi!

So how much heavy is your UI
How many controls in each UI Layer.

It seems you just need to change the look of controls rather than Controls?

Thanks!
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now