设置方法修复控件在c#.net中任何桌面上的位置 [英] how to set & fix controls location on any desktop in c#.net
本文介绍了设置方法修复控件在c#.net中任何桌面上的位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在c#.net中的任何桌面上设置和修复控件的位置
how to set & fix controls location on any desktop in c#.net
推荐答案
我*认为*您的意思是如何编写C#应用并拥有控件在任何桌面尺寸下都可以坐在想要的地方?在这种情况下,您应该在winforms应用程序中使用停靠和锚定属性,以使控件根据自己的意图重新定位.如果是WPF,则更容易,只需将它们布置好,然后从那里放置自己.
I *think* you mean how to write a C# app and have the controls sit where you want them, on any desktop size ? In that case, you should use the dock and anchor properties in a winforms app, to make the controls reposition themselves according to your intentions. If it''s WPF, then it''s easier, you just lay them out and they position themselves from there.
这篇关于设置方法修复控件在c#.net中任何桌面上的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文