Click here to Skip to main content
13,086,019 members (81,954 online)
Rate this:
Please Sign up or sign in to vote.
See more:
Hello all,

Can we expand form on a buttion click in , if we use panel with show/hide option that part will always be showed on form . Pl. share your experience.

Posted 21-Feb-13 17:34pm
Sergey Alexandrovich Kryukov 21-Feb-13 23:57pm
What is "expand"?

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

If I understand you correctly, all you'd need to do is set the form's size property[^]. The size consists of the height and width. You can set them individually if you want to.

If you have a panel that you want to show or hide, you can do that too. You may need to move things around a bit on your form so you'll want to look into the anchor property of the controls and the location property[^] of controls that you have on your form to see how to move them around.

Also, the anchor property[^] is useful when you want controls to stretch with the form when it is resized.

Hope this helps.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web02 | 2.8.170813.1 | Last Updated 22 Feb 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100