Can't get form to go full screen over space at bottom of screen

D

Dan

I;'ve tried various things and cannot get my form to display in the whole
window in a Kisok/Full Screen mode. I tried following the advice on this
page to no avail.
http://groups.google.com/group/micr...act+Framework+2.0+SP1&rnum=1#93325afb934c2b45

I am using .NET CF 2.0 SP1. Before upgrading from .NET CF 1.0 I had no
problem going full screen on the device. It's CE 4.2 by the way. Any
ideas? Also, I can hide the task bar and start menu on the bottom, but the
window will never fill that bottom space, it just keeps it empty so you can
see the desktop in that little space at the bottom where the taskbar used to
be. I've tried maximizing and manually setting the form size but it will
not move or take over that space. I'm using an Intermek CK31 mobile device.

Any ideas?
 
J

Jeff Newman

I;'ve tried various things and cannot get my form to display in the whole
window in a Kisok/Full Screen mode. I tried following the advice on this
page to no avail.http://groups.google.com/group/microsoft.public.dotnet.framework.comp...

I am using .NET CF 2.0 SP1. Before upgrading from .NET CF 1.0 I had no
problem going full screen on the device. It's CE 4.2 by the way. Any
ideas? Also, I can hide the task bar and start menu on the bottom, but the
window will never fill that bottom space, it just keeps it empty so you can
see the desktop in that little space at the bottom where the taskbar used to
be. I've tried maximizing and manually setting the form size but it will
not move or take over that space. I'm using an Intermek CK31 mobile device.

Any ideas?

You need to manually move the window down using

[DllImport("coredll.dll", SetLastError=true)]
static extern IntPtr MoveWindow(IntPtr hwnd, int x, int y, int w, int
l, int repaint);

You'll have to figure out how many pixels your device needs (I believe
y is usually -24).
 
D

Dan

instead I just set the width and height of the form to the screen dimensions
and windowsstate to Normal. It worked after hiding the task bar to have it
fill the whole screen.


Jeff Newman said:
I;'ve tried various things and cannot get my form to display in the whole
window in a Kisok/Full Screen mode. I tried following the advice on this
page to no
avail.http://groups.google.com/group/microsoft.public.dotnet.framework.comp...

I am using .NET CF 2.0 SP1. Before upgrading from .NET CF 1.0 I had no
problem going full screen on the device. It's CE 4.2 by the way. Any
ideas? Also, I can hide the task bar and start menu on the bottom, but
the
window will never fill that bottom space, it just keeps it empty so you
can
see the desktop in that little space at the bottom where the taskbar used
to
be. I've tried maximizing and manually setting the form size but it will
not move or take over that space. I'm using an Intermek CK31 mobile
device.

Any ideas?

You need to manually move the window down using

[DllImport("coredll.dll", SetLastError=true)]
static extern IntPtr MoveWindow(IntPtr hwnd, int x, int y, int w, int
l, int repaint);

You'll have to figure out how many pixels your device needs (I believe
y is usually -24).
 

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