Advertise with us

WinForm enter fullscreen mode

I have WinForm application and i want to enter fullscreen mode and remove all bars and the task bar. i done it with this:

this.WindowState = FormWindowState.Maximized;

this.FormBorderStyle = FormBorderStyle.None;
this.TopMost = true;

The top bar is really hidden but the Windows TaskBar is still visible. Any idea what can be the trouble?

Last updated:10/8/2013 1:09:33 AM

1 Answers

Manoj Bhatt
Manoj Bhatt

You can use this code

 private void Form1_Load(object sender, EventArgs e)

        {
            this.TopMost = true;
            this.FormBorderStyle = FormBorderStyle.None;
            this.WindowState = FormWindowState.Maximized;
        }

Last updated:10/8/2013 1:09:33 AM

Answer