FullScreen in CE 4.x

A

Adam Goetz

I know how to do this in C# PocketPC and in C++ native code, but I'm having
a problem with getting full screen apps in C# on a CE 4.x unit.

I have this code:

IntPtr piTrayWnd = FindWindow("HHTaskBar", "");
SetWindowPos(piTrayWnd, 1, 0, 0, 0, 0, 0x0080);

Where FindWindow and SetWindowPos have both been DllImported.
This causes the task bar area to become a dead zone, nothing draws over it,
the task bar is defunct. I have no problems with a defunct taskbar, but the
failure to draw over is annoying.
WindowState is set to Maximised after the above call.
Any suggestions?
 
A

Alex Feinman [MVP]

Try also hiding the task bar window. Another thing that might help (on top
of SetWindowPos and ShowWindow(SW_HIDE) is to call
SystemParameterInfo(SPI_SETWORKAREA) passing it a rectangle of the full
screen size
 
G

Guest

hmm, you could olso try to override the onLoad Sub (in VB.NET) if you have a
form with border style none:

Protected Overrides Sub OnLoad(ByVal e As System.EventArgs)
Me.WindowState = FormWindowState.Maximized
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top