PlatformName... / fulscreen forms

  • Thread starter Thread starter Lloyd Dupont
  • Start date Start date
L

Lloyd Dupont

I wanted to be able to sort out PocketPC from the other WindowsCE devices.
For that I used the code below
and tested if the PlaftormName was equal to "PocketPC" I had some problem
and test it includes "PocketPC" but I wonder if I could stay there or if I
should go further.


on another thought, my main goal is to find if the Form are fullscreen by
default.
Any simple way of testing that ?
 
To display full screen I do the following :
- WindowState = FormWindowState.Maximized;
- Menu = null;
- Controls.Remove(MyToolbar);
- FullScreen = true; (field of my class)

So afterwards, I can check if my window is full screen or not.
Hope this helps.
 
sorry I mean.
on windows, a windowas ahas a size, and that's it.
on CF they have a fixed size maximized (except the borderless ones).

is there a way to know if, on a given CE device (the one the app is running)
the window would be nly maximized or could be resized moved ?

(mmhh... I could try to change the location of an invisible window, and see
what happened ? let's try...)
 
Lloyd said:
I wanted to be able to sort out PocketPC from the other WindowsCE devices.
For that I used the code below
and tested if the PlaftormName was equal to "PocketPC" I had some problem
and test it includes "PocketPC" but I wonder if I could stay there or if I
should go further.


on another thought, my main goal is to find if the Form are fullscreen by
default.
Any simple way of testing that ?
Well System.Environment.OSVersion will help you figure out what kind of
device you are running on, I think.
 
Use GetWindowLong to get the window's style bits. That'll tell you
everything about it.

-Chris
 
yep.
but the fact is not all WindowsCE devices behave like that ....
(I mean have fixed maximum size window)
 
Back
Top