When ever a form is resized, the Form_Resize event fires. Place code to resize the Listview in that event.
The following example will keep the Listview control the size of the Form.
VB Code:
Private Sub Form_Resize() 'don't resize anything if the form is minimized If Me.WindowState <> vbMinimized Then Me.ListView1.Move 0,0,ScaleWidth,ScaleHeight End If End Sub




Reply With Quote