Determine if app is running on win ce or pocketPC with .NET?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm developing an application with .NET CF and Visual Basic .NET. How can I
determine, if the application is running on winCE or PocketPC so that I can
adjust the controls' locations?
 
Besides simply checking the screen dimensions, you can also P/Invoke
SystemParametersInfo with SPI_GETPLATFORMTYPE which will return PocketPC on
Pocket PC 2002 and greater, and other values for generic CE devices.
The code to do this is available within the
OpenNETCF.EnvironmentEx.PlatformName property - see www.opennetcf.org/sdf/
for details

Peter
 
Back
Top