2009-12-04 23 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

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

相關問題