WinForm enter fullscreen mode

Total Post:117

Points:821
C# 
C#
 1728  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. 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;
            }

      Modified On Mar-31-2018 06:43:21 AM

Answer

NEWSLETTER

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