Home > DeveloperSection > Forums > WinForm enter fullscreen mode
jayprakash sharma
jayprakash sharma

Total Post:117

Points:821
Posted on    October-07-2013 8:52 AM

 C# C# 
Ratings:


 1 Reply(s)
 959  View(s)
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?



Manoj Bhatt
Manoj Bhatt

Total Post:153

Points:1079
Posted on    October-08-2013 1:09 AM

You can use this code

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

Don't want to miss updates? Please click the below button!

Follow MindStick