Solved

Visual Studio 2012 - Application with multiple forms

Posted on 2014-04-15
5
566 Views
Last Modified: 2014-04-30
I'm new to Visual Studio, certainly with regard to forms!

I am reconstructing an old application I made with IT Support Tools and because I didnt want to have loads of buttons on one page it has "pages" of tools to switch to.
The Main or opening pageProcesses page
As you can see from the images, when you click a button on the left the page changes but the left menu remains. A bit like a web page.

How do I achieve this simply in Visual Studio? I have attempted buttons that hide forms and opens another but it feels messy.
0
Comment
Question by:fruitloopy
  • 2
  • 2
5 Comments
 
LVL 52

Accepted Solution

by:
Carl Tawn earned 500 total points
Comment Utility
I guess to replicate what you have already you could use Panel controls. You can have multiple panels on a single form and show/hide them as needed in response to the options in your menu.

The Panel is simply a flat container for other controls, so you'll need one per menu option.
0
 
LVL 69

Expert Comment

by:Éric Moreau
Comment Utility
or you can create a form with your left menu and then inherit from this base form when you need to create the 2 other
0
 
LVL 2

Author Comment

by:fruitloopy
Comment Utility
It looks like panels is the way to go and I'm currently experimenting with that.
I have common text boxes and labels that I would like to have visible on each panel but I cannot find out how to do this.

E.g. This is a desktop support tool that has a txtHostName textbox and a lblHostName label.

I cant find how to make these appear with the typed information in all panels in the same place.
0
 
LVL 52

Expert Comment

by:Carl Tawn
Comment Utility
If they're shared, you could potentially put them at the top of the form outside of any panel.

If the data changes depending on the panel then you might want to look at creating a composite control. You would still need an instance of the composite control on each panel, but at least it would be simpler to maintain.
0
 
LVL 2

Author Closing Comment

by:fruitloopy
Comment Utility
Panels it is. Thanks
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

743 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