1. Home
  2. Knowledge Base
  3. How to create a full-screen application in .Net CF

How to create a full-screen application in .Net CF

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 an 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 the This is a full-screen application option.

Was this helpful?
Updated on May 2021