如何在c#中创建没有max/min/close按钮的表单?

Ben*_*nny 4 button winforms

我知道P/invoke可以做,但有管理方式吗?

Gal*_*ian 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;
 }
Run Code Online (Sandbox Code Playgroud)