typeof device

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

Lloyd Dupont

is there a way to know which kind of device I'm running on ?

I have problem with dialog on PPC (mainly they hide the main window), so I
use fake dialog which are just plain (top level) control instead.
but I want to 'port' the app to other wince device (change the layout
basically) however I would like to use ShowDialog() and Form on device other
than PPC, it's why I would like to know my type of device....
 
The Device type and OEM name can be retrieved through the
SystemParametersInfo API function. You can see the source for the
Environment.PlatformName property in the Smart Device Framework
(www.opennetcf.org/sdf/) here:-
http://www.opennetcf.org/SourceBrow...Pub/wwwroot/Source/OpenNETCF/EnvironmentEx.cs

There are no fixed return values for CE devices so you could get a multitude
of different names returned - it depends on the OEM and device type. However
Pocket PC will return "PocketPC" and Smartphone will return "Smartphone".

Peter
 
additional idea ...

In fact usind this faked dialog is safe provided the default form is
fullscreen.
is there anyway to know if the default form is fullscreen ?
 
Back
Top