Solved

Can I create expandable regions on a control?

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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VB.net Filesystem watcher not working 5 55
Visual Studio Start / Browser Emulator menu different 2 37
Subtract dates in vb.net 6 33
VB .net 2010 Byte array 2 19
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

737 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