Windows Mobile app in full screen

I have a Windows Mobile application developed with Visual Studio 2008 and C # (Smart Device project). When I launch the application, the Start menu bar is displayed on top and the keyboard bar at the bottom. How to make the application run in full screen mode?

If possible, I would like to have a solution that allows me to turn on and off the full-screen mode at runtime (for example, by pressing a button of some form).

+4
source share
4 answers

It’s easy to get rid of the keyboard / menu bar below: just remove the MainMenu element from each of your forms.

Eliminating the initial menu (aka task bar) at the top of the screen is more complicated and requires the use of the Windows API. This link shows how to do this.

There is an easier way to make your application fullscreen (sorry, this is early and I don’t remember it right now), but a simpler method has an ugly side effect when the taskbar instantly appears when you switch to another form in your application, what type kills the desired kiosk effect. Using the API as described above to hide the taskbar prevents this.

However, there is a danger for this approach: if your application crashes or is reset without hiding the taskbar, your user will not be able to display it, and it will remain invisible until the device is reset.

+6
source

Check out the Microsoft example .

While the example is for Windows Mobile 2003, you can choose the syntax for calling SHFullScreen. An example call has already been retrieved here.

+2
source

Try this in your basic form; this can help:

this.WindowState = FormWindowState.Maximized; 
0
source

I tested on a VGA emulator for Windows Mobile 6 Professional, it works. The button is skipped as well.

 this.WindowState = FormWindowState.Maximized; this.Menu = null; this.ControlBox = false; 
0
source

All Articles