Search code examples
c#compact-framework

How to create a full screen application in Win CE 6.0 using .NET Compact Framework 3.5?


We want our application to run in full screen mode with no title bar on a Win CE 6.0 powered device. The application is being developed using .NET Compact Framework 3.5 (C#). Any sample code or pointers to articles is appreciated.


Solution

  • First, you have to hide the task bar via P/Invoke. Here's the C code, which should be really easy to convert:

    HWND hwndTaskbar = ::FindWindow(_T("HHTaskBar"), NULL); 
    ::ShowWindow(hwndTaskbar, SW_HIDE); 
    

    Once you do that, then use Screen.PrimaryScreen to determine how big your display is and resize your form to those dimensions.