Hi
When working with a form you can set the MaximizedBounds. Can someone please give me an example where they have succesffully set the MaximizedBounds on a form???
It is most probably simple but i always get an error.
Thanks in advance
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
MartinPosted Dec 16, 2006, 9:53 AM
this.Bounds = Screen.PrimaryScreen.Bounds;
this.WindowState = FormWindowState.Maximized;
this.ClientSize = Screen.PrimaryScreen.Bounds.Size;
Personally, when I want to make a 'fullscreen' application, I use
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.Bounds = Screen.PrimaryScreen.Bounds;
this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
this.ShowInTaskbar = false;