开发者

Resizing and changing location of all labels,pictureboxes,panels,buttons to fit any screen

开发者 https://www.devze.com 2023-02-05 08:36 出处:网络
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 fi

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

0

精彩评论

暂无评论...
验证码 换一张
取 消