Solved

Can I create expandable regions on a control?

Posted on 2008-10-10
2
217 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

895 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

14 Experts available now in Live!

Get 1:1 Help Now