Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在 c# 中重新调整 Windows 窗体的大小,例如调整图像大小。
例如,我想像这些图片一样重新调整 Windows 窗体的大小:(1->2)
调整大小之前:
调整大小后:
如果WPF中有答案,请解释一下...
在 Form 上使用Control.Scale方法。
您是否尝试使用 Anchor 属性?有一个锚定顶部、底部、左侧和右侧的选项。