Solved

Can I create expandable regions on a control?

Posted on 2008-10-10
2
213 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
2 Comments
 
LVL 11

Accepted Solution

by:
jgordos earned 250 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
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…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

705 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

19 Experts available now in Live!

Get 1:1 Help Now