views:

400

answers:

1

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.

+2  A: 

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.

ctacke
Can you please give some C# for calling these APIs. Sorry, I dont know much about P/Invoke.
Gopinath
If you're going to write a CF app, you're going to have to learn to P/Invoke - there's no way around it. These are really simple, and I gave a link that will get you started. I'm not giving you the fish, only the fishing pole.
ctacke
thanks. I started learning P/Invoke :)
Gopinath