title: Visual Basic 6.0 - Need to enable/disable Scrollbar of MDI form in runtime
body: <p>I need to enable the MDI parent scroll bar only in some MDI child forms and disable it for other forms. I have resize code for resolution changes but for DPI changes the forms width goes beyond screen size. So I need to enable it for these forms and disable it for other forms.</p>
  
  <p>For Resolution </p>
  
  <pre><code>ResizeX = Screen.Width / (1024 * Screen.TwipsPerPixelX)
  ResizeY = Screen.Height / (768 * Screen.TwipsPerPixelY)
  </code></pre>
  
  <p>For DPI </p>
  
  <pre><code>XPIXELSPERINCH = GetDeviceCaps(hdc, 88)
  YPIXELSPERINCH = GetDeviceCaps(hdc, 90)
  </code></pre>
  
  <p>Is there any way of using sendmessage function to disable / enable the MDI parent form scroll bar.</p>