Solved

Visual Studio 2012 - Application with multiple forms

Posted on 2014-04-15
5
580 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
ID: 40001568
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 70

Expert Comment

by:Éric Moreau
ID: 40001627
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
ID: 40003604
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
ID: 40003616
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
ID: 40032120
Panels it is. Thanks
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
VB.Net - KeyPress Event 4 38
VB.net and sql server 4 45
VB.net Progress Bar - Maximum Value too large 2 15
How to limit User Input 2 27
Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
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…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

828 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