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.
views:
400answers:
1
+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
2009-12-09 15:20:50
Can you please give some C# for calling these APIs. Sorry, I dont know much about P/Invoke.
Gopinath
2009-12-10 07:18:35
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
2009-12-10 13:57:15
thanks. I started learning P/Invoke :)
Gopinath
2009-12-10 15:47:56