?
Solved

Can I create expandable regions on a control?

Posted on 2008-10-10
2
Medium Priority
?
245 Views
Last Modified: 2013-12-17
Can I create expandable regions on a UserControl or Form like Resource Monitor(Windows Task Manager-> Performance Tab->Click Resource Monitor button)  uses in Vista?

So, e.g. I could create a series of panels with different controls but be able to hide a panel and its contents and the size of the UserControl or Form adjusts to the size of the contents on display.

Using WPF something like can be achieved using the Expandable Region content but my app is written using GDI+ and I don't really want to convert it.
0
Comment
Question by:wsprhino
[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 Comments
 
LVL 11

Accepted Solution

by:
jgordos earned 1000 total points
ID: 22691767
The answer, of course, is "of course".

you can do it several ways... the way that pops to mind for me is to make essentially, a form with a button vertically above a CPanel.

When the button is clicked, you grow the height of the CPanel.. when the button is clicked again... shrink it.

-john
0
 

Author Comment

by:wsprhino
ID: 22691813

If I had 3 or 4 of these panels one below the other : does that mean I would have to recalculate the height of the form as each panel is collapsed or expanded and dock each panel onto the one above it or just reset it's location?

0

Featured Post

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them.

Question has a verified solution.

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

Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

765 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