WINFORM ENTER FULLSCREEN MODE

jayprakash sharma

Total Post:117

Points:821
Posted by  jayprakash sharma
C# 
C#
 1415  View(s)
Ratings:
Rate this:

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?

  1. Manoj Bhatt

    Post:154

    Points:1086
    Re: WinForm enter fullscreen mode

    You can use this code

     private void Form1_Load(object sender, EventArgs e)
            {
                this.TopMost = true;
                this.FormBorderStyle = FormBorderStyle.None;
                this.WindowState = FormWindowState.Maximized;
            }

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!