Programming UI with multiple panels

Posted on 2005-04-20
Last Modified: 2010-08-05
I have what might be a basic question. In VB6 I seem to recall a sort of "wizard designer" which facilitated the design of a multi-step process with prev/next buttones etc. The various panels were shunted off to one side to reveal the one you were designing on - all controlled by  VB6 IDE add-in.
My current application has a number of full-screen panels (not a wizard) but each switched on/off by various actions on a menu bar down the LH side of my screen. I am using VS.Net 2003.

My problem is - how can I easily accomodate all these panels (about 6 so far) on the screen, and lay out controls reliably?  At present I simply reduce/enlarge as required, but I feel this is too messy to work with, and you run into z-order problems etc etc.

Any advice on how to handle - at design time of course - these multiple panels would be appreciated.  Some panels have program-generated controls, others must be laid out at design time.

Many thanks in advance

James Stewart

Question by:jxstewart
    LVL 21

    Accepted Solution

    hello, had the same situation and ended up using custom controls - in which case you always can modify your control, do all proper layout and etc, and then place it dynamically on your panel. Also it's no difficult to switch between different user controls.

    LVL 1

    Expert Comment

    instead of panels make usercontrols.
    just right click on the project and "add user control".
    add them on your form dynamically and hide all the other user controls except the one you want to show.

    LVL 21

    Expert Comment

    i did mean a user control rather a custom control of course and since the answer was given, i either would split with skot, or just give it all to him...


    Featured Post

    Training Course: Java/J2EE and SOA

    This course will cover both core and advanced Java concepts like Database connectivity, Threads, Exception Handling, Collections, JSP, Servlets, XMLHandling, and more. You'll also learn various Java frameworks like Hibernate and Spring.

    Join & Write a Comment

    Article by: Najam
    Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
    This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    730 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now