FullScreen in CE 4.x

  • Thread starter Thread starter Adam Goetz
  • Start date Start date
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?
 
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
 
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
 
Back
Top