Resizing GUI window

ejleiss

Active member
Joined
Oct 1, 2012
Messages
37
Programming Experience
1-3
Hi,

I made a GUI with a chart plot and a few simple push buttons. I am looking for a way to re-size the whole GUI window when its running so that everything in the GUI is proportional to the size of the overall window no matter how big or small it is sized, instead of cutting off parts of the plot and other sections. Any help would be appreciated.
Thanks
 
Hi,

Just change the controls Anchor property to achieve what you need. As an example, add a TextBox and a Button to a form. Drag the width of the TextBox to fill most of the form from left to right and change it's Anchor property to Top, Left, Right. Alight the Button to the right hand edge of the TextBox and set the Button's Anchor property to Top, Right and run. Resize the form as you need and see what happens.

Hope that helps.

Cheers,

Ian
 
Back
Top