Create full screen application in .Net CF

By 42Gears Team

Applications can use the screen real estate to their benefit by running in full screen mode. If you are developing your application in .NET CF, there are 2 ways to make it full screen.

In Code
Put the following code into your form's Load() method like below.

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

In Designer View
Set FormBorderStyle to None and WindowState property to Maximized.

FullScreen in SureLock Studio
SureLock Studio has an option to set an "approved" application to run in full screen mode. This does not mean that SureLock will launch it in fullscreen mode, instead this option instructs SureLock to not interfere with application making itself fullscreen. A well-behaved fullscreen application should provide a way for the user to minimize or exit.

If your application is full screen and you don't specify this in SureLock Studio then you will see the windows taskbar popping at the top. This is an undesired behavior and can be easily avoided by setting "This is a full screen application" option.

“Written with expertise and passion to help you understand the topic better.”

4
42Gears Team – Content Author
Published on September 26, 2009

Subscribe to our newsletter

Stay updated with the latest news, articles, and resources on enterprise mobility.

Weekly articles
Actionable insights delivered once a week. No noise.
No spam
Your privacy matters. Unsubscribe anytime.