title: DPI changes of WinForm in C#
body: <p>I have developed an application that controls couple of maxon motors in C#. My OS is Win 8.1. My program works properly. However, it has one strange behavior. When I press a specific button, the dpi (resolution) of the main form of the application highly increases and the size of the window decreases. So before pressing this button I have a windows with same dpi of other windows, and after pressing this button, I have a high resolution/small windows. I figured it out that the piece of code making this happened is:</p>
  
  <pre><code>Device.Init(); 
  </code></pre>
  
  <p>which is related to one of the maxon dlls. Does anyone know how I can remove this effect? Is there anyway to set resolution in Visual Studio?</p>