Han*_*ant 20
表单上没有可以访问MDI客户端窗口的属性.但你可以像这样找到它:
public MdiClient GetMdiClientWindow() {
foreach (Control ctl in this.Controls) {
if (ctl is MdiClient) return ctl as MdiClient;
}
return null;
}
Run Code Online (Sandbox Code Playgroud)
从那里,只需使用其Size属性.
| 归档时间: |
|
| 查看次数: |
9615 次 |
| 最近记录: |