How to make border less Form in c#

For that you have set form's  FormBorderStyle Property to None.

  this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;

 

 


you can write this in Form_load Event:

        private void Form1_Load(object sender, EventArgs e)

        {

 

            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;

 

 

        }


but when you make border less form , then it is impossible to close window ,

because close button is not visible at that time.


For that you have to add close button in your application.

So Form can be closed.


you can close Form using this:

 

        private void button1_Click(object sender, EventArgs e)

        {

            this.Close();   

        }