10 pts.
 How to make the form contents maximize when its window is maximized?
I made a form smaller than the size of the monitor, when the user choose to use the program in a full screen mode, the contents (buttons, pictures, etc) will stay in the very same size and place, and it would be a mess to see them not centered anymore in the maximized window. Any idea how to avoid that ?! Thank you

Software/Hardware used:
visual basic express 2010
ASKED: November 8, 2012  6:42 PM
UPDATED: November 8, 2012  6:49 PM

Answer Wiki:
Last Wiki Answer Submitted:  Be the first to answer this question.
All Answer Wiki Contributors:  Be the first to answer this question. Michael Tidmarsh   11,410 pts. , xanado   10 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

Welcome to ITKE, xanado. Hopefully one of our members with Visual Basic experience can help with this formatting issue. 

In the meantime, be sure to check out our FAQ for more on how the community works. 
 2,060 pts.

 

You might want to consider using your control’s anchor or dock properties, which would allow you to define their position/size in relation to the form size.  Using this option you would probably not need to write code to reposition/resize your controls.

Another option would be to handle the form’s SizeChanged event, where you would write the necessary code to resize or reposition your controls according to the new form’s size.

 63,535 pts.