Windows Forms resolution problem

后端 未结 3 1386
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-13 14:12

I have developed a 1024 *780 resolution screen in Windows Forms, but some say that it does not fit properly at higher resolutions. Is there any way to handle this?

3条回答
  •  情深已故
    2021-01-13 14:36

    My recommendation is not so much to "make it look the same" on all screens, but rather to design the GUI so it scales up and down more gracefully. Layout managers, docking, and anchors are your friends in Winforms. The TableLayoutPanel is quite useful for this sort of thing. Splitters also help...

    Finally, this is one of those problems that WPF sets out to solve. WPF makes extensive use of layout managers. It feels much more like Java or GTK than Winforms or even VB (old school VB).

提交回复
热议问题