Click here to Skip to main content
12,501,820 members (68,250 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: VB VB.NET
Hello all,

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

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

1 solution

Rate this: bad
 
good
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.
  Permalink  

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 | Mobile
Web01 | 2.8.160919.1 | Last Updated 22 Feb 2013
Copyright © CodeProject, 1999-2016
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