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
Welcome to ITKE, xanado. Hopefully one of our members with Visual Basic experience can help with this formatting issue.
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.