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

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?
 
P

Peter Foot [MVP]

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
 

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