2009-12-04 39 views

回答

10

您应该能够切换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; 
} 
+0

很酷。永远不知道这个属性的含义。 – Benny 2009-12-04 09:28:23

1

是的......只要禁用窗体属性上的控件框即可。

相关问题