title: Screen.width/Screen.TwipsperpixelX -different value for same
body: <p>I have VB Application which on loading changes the resolution of the system from 1280*1024 to 1024*768 . When I stop the application it restores the resolution to normal resolution which is defined as <code>NormalRes = Screen.Width / Screen.TwipsPerPixelX</code>. But when I do it for the second  time simultaneously it did not restored the resolution.</p>
  
  <p>I checked the code and the resolution returned was 1024(horizontal=1280)*1024, hence it could not change resolution and stayed to 1024*768. </p>
  
  <p>What bugs me is that the when the normal resolution is defined as <code>Screen.Width/Screen.TwipsPerPixelX</code>.</p>
  
  <p>why is that it is giving different value (instead of 1280 it is giving 1024). Is it because when I changing the resolution first time its value changes?<br>
  Under what circumstances the value of the can have different values? ?</p>
  
  <p>Seeking your help,
  Satish kumar</p>