Remove the title bar in Windows Forms

前端 未结 7 2016
孤城傲影
孤城傲影 2020-11-29 20:10

How can I remove the blue border that\'s on top of the Window Form? (I don\'t know the name of it exactly.)

7条回答
  •  没有蜡笔的小新
    2020-11-29 20:50

    if by Blue Border thats on top of the Window Form you mean titlebar, set Forms ControlBox property to false and Text property to empty string ("").

    here's a snippet:

    this.ControlBox = false;
    this.Text = String.Empty;
    

提交回复
热议问题