Development for multiple panels for a window

G

Guest

I have 1 window with several panels that fill the window depending on what view the user wants to see. Is there any way to speed development instead of changing ordering(z-order) for a particular panel and visually develop on it
I would like to be able go back and forth between panels visually without chaning the code. In Visual Studio one panel will have priority based on the first panel added to the window
Thanks
Marc
 
H

Herfried K. Wagner [MVP]

* "=?Utf-8?B?TWFyYw==?= said:
I have 1 window with several panels that fill the window depending on
what view the user wants to see. Is there any way to speed development
instead of changing ordering(z-order) for a particular panel and
visually develop on it.

There is nothing in the .NET Framework. All you can do is adding a
'TabControl' and place other controls in front of the tabs to hide them.
 
J

Jeremy Williams

Marc said:
I have 1 window with several panels that fill the window depending on what
view the user wants to see. Is there any way to speed development instead
of changing ordering(z-order) for a particular panel and visually develop on
it.
I would like to be able go back and forth between panels visually without
chaning the code. In Visual Studio one panel will have priority based on
the first panel added to the window.
Thanks,
Marc

Panel controls, as you have already found, are not the best way to manage
this type of interface.

A better approach is to use UserControls instead of panels. Create a
UserControl with each layout, then place an instance of each UserControl on
your main window, just like you did with the panels. When you need to work
with the layout of a particular UserControl, you can open it just like you
would a form, so you can change it around without worrying about the other
UserControls.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top