title: How to print a form in vb6.0
body: <p>i use below code..but it doesn't print whole form.Its only print half form.how to print whole form?</p>
  
  <pre><code>    PrintForm1.PrintAction = PrintAction.PrintToPreview
      PrintForm1.Print()
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/59byw.png" alt="enter image description here"></p>
  
  <p>i also use below code but its not working</p>
  
  <pre><code>If PrintDialog1.ShowDialog = DialogResult.OK Then
              PrintDocument1.Print()
  </code></pre>