Solved

Visual Studio 2012 - Application with multiple forms

Posted on 2014-04-15
5
588 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

707 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