How to remove title bar in windows form application
12,437
Solution 1
try setting Forms ControlBox property to false and Text property to empty string ("").
here's a snippet:
this.ControlBox = false;
this.Text = String.Empty;
and you can retry setting the FormBorderStyle to none this way
Solution 2
I think this should be just fine:
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
You may also do the following:
this.ControlBox = false;
this.Text = String.Empty;
Author by
Admin
Updated on June 04, 2022Comments
-
Admin almost 2 years
IDE: Visual Studio 2010 c# .net, Windows form application
Hi, I am trying to remove the title bar in windows form application but I am not able to do it. ( Image is here):
Title Bar:
for removing it, I have tried this code:
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
but it still showing me the border like shown in image.