Predefined Constants in VB.Net

  • Thread starter Thread starter Philip Sheard
  • Start date Start date
P

Philip Sheard

Is there a pre-defined VB.Net constant that determines whether you are
targetibg Windows Mobile 5.0?
 
No you'll have to check a combination of the OS version (Windows Mobile 5.0
reports a CE version of 5.1) using System.Environment.OSVersion, and the
platform name which will be either PocketPC or Smartphone and is accessible
via SystemParametersInfo (but you'll probably need to sign your code to use
this API on Smartphone v5.0). If you know you are targetting only windows
mobile devices you can use just the OS version, this only becomes a problem
when dealing with PPC2000/2002 as these are both based on CE 3.0

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

Back
Top