title: GridView Size Problem?
body: <p>Using VB.NET 2008</p>
  
  <p>Am using Datagridview in my application, Datagridview should display according to the windows screen size, Before I used vb6 </p>
  
  <p>code.</p>
  
  <pre><code>Private Sub Form_Resize()
  On Error Resume Next
  
      If Me.WindowState = vbMinimized Then
          Exit Sub
      End If
  
      listview1.Top = 1550
      listview1.Left = 0
      If ScaleHeight &gt; 1550 Then
          listview1.Height = ScaleHeight - 1550
      End If
  
      listview1.Width = ScaleWidth
  End Sub
  </code></pre>
  
  <p>Am new to vb.net, How to set a datagridview size according to windows screen size, In Datagridview property itself any option is available or i have to make a code as like vb. If i have to make a code, how to give form_resize in vb.net.</p>
  
  <p>Need vb.net code Help.</p>