dennismagno / metroframework-modern-ui

My humble attempt to bring the new Modern UI alias Metro UI of Windows 8 to .NET Windows Forms applications.
http://dennismagno.github.io/metroframework-modern-ui
Other
861 stars 1.08k forks source link

Unable to show form in full screen mode. #7

Closed indiepay-alundgren closed 7 years ago

indiepay-alundgren commented 7 years ago

I'm using this for a video game. It looks great in windowed mode, but I need to also be able to use it in full screen (no taskbar visible, no max/min/close buttons, no titlebare, etc.). With native WinForms this works fine, but I don't see how to achieve it with Metro UI.

Thank you!

dennismagno commented 7 years ago

You can add this on your Shown event

this.ControlBox = false;
this.FormBorderStyle = FormBorderStyle.None;
this.WindowState = FormWindowState.Normal;
this.Bounds = Screen.PrimaryScreen.Bounds;