Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: VB.NET
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 18:34pm
Sergey Alexandrovich Kryukov at 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
0 Peter Leow 160
1 Mika Wendelius 156
2 Abhinav S 155
3 Sergey Alexandrovich Kryukov 115
4 TheRealSteveJudge 114
0 Sergey Alexandrovich Kryukov 8,593
1 OriginalGriff 6,536
2 Peter Leow 3,727
3 Zoltán Zörgő 3,436
4 Richard MacCutchan 2,417

Advertise | Privacy | Mobile
Web02 | 2.8.150123.1 | Last Updated 22 Feb 2013
Copyright © CodeProject, 1999-2015
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