【发布时间】:2010-12-23 04:22:51
【问题描述】:
我知道 P/invoke 可以做到,但是有托管方式吗?
【问题讨论】:
我知道 P/invoke 可以做到,但是有托管方式吗?
【问题讨论】:
您应该能够切换ControlBox 属性。
public void CreateMyBorderlessWindow()
{
this.FormBorderStyle = FormBorderStyle.None;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.StartPosition = FormStartPosition.CenterScreen;
// Remove the control box so the form will only display client area.
this.ControlBox = false;
}
【讨论】:
是的...只需禁用表单属性上的控制框即可。
【讨论】: