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 enter image description here

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;
Share:
12,437
Admin
Author by

Admin

Updated on June 04, 2022

Comments

  • Admin
    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:

    http://i772.photobucket.com/albums/yy9/yogeshkmrsoni/titlebarProblem_zps57e6a986.jpg

    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.