Solved

Visual Studio 2012 - Application with multiple forms

Posted on 2014-04-15
5
576 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
LINQ - C# to VB convertion 12 56
Advice in Xamarin 21 78
Modal Popup Extender control 1 18
Calculate number of nights between two dates 5 17
Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

813 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

10 Experts available now in Live!

Get 1:1 Help Now