且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Windows窗体解析问题

更新时间:2023-12-06 09:00:58

我的建议不是要在所有屏幕上使其看起来都一样",而是要设计GU​​I以便它可以更顺畅地缩放.在Winforms中,布局管理器,对接和锚点是您的朋友. TableLayoutPanel对于此类事情非常有用.拆分器也有帮助...

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...

最后,这是WPF着手解决的那些问题之一. WPF广泛使用布局管理器.感觉比Winforms甚至VB(老式VB)更像Java或GTK.

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).