title: dotnet compact framework 3.5 sp1 detect device resolution
body: <p>I need to detect the device resolution automatically, right now I have a global var &amp; hardwire the resolution:</p>
  
  <pre><code>Public gDeviceRes As String = "640"
  'Public gDeviceRes As String = "320"
  </code></pre>
  
  <p>then recompile for each device, does anyone have a quick snippit of code for this??</p>