i am designing a game (using window forms) and need to resize everything (panels, labels, picture boxes, butt开发者_StackOverflow中文版ons, progress bars, ...) and change their location in order to fit in the screen of any size (dimensions) and resolution! the game is always in maximized state.
dock your controls to your form
desolator's comment: Specically, use a TableLayoutPanel with gui organized in rows and columns. Use Dock.Fill with everything, even with the panels and with the main panel. Notice that panels can be nested and dock.fill ed too
精彩评论