title: Listview Column Width on Split Container Resize
body: <p>I have a listview inside my split container. My listview contains two columns. One of which I want to be adjusted automatically upon resizing the split container.</p>
  
  <p>Here's a visual perspective:</p>
  
  <p><img src="https://i.stack.imgur.com/PaiJZ.png" alt="Normal size"></p>
  
  <p>After resize</p>
  
  <p><img src="https://i.stack.imgur.com/33Mst.png" alt="Resized"></p>
  
  <p>As you can see, the columns stay the same sizes ... Even with this code on my split container resize event:</p>
  
  <pre><code>Private Sub sc_Target_Resize(sender As Object, e As System.EventArgs) Handles sc_Target.Resize
      If lvTarget.Columns.Count &gt; 1 Then lvTarget.Columns(1).Width = -2
  End Sub
  </code></pre>
  
  <p>I've also tried to put the column width to -2 on form load ... Didn't change anything. Apparently, -2 width on a listview column should make it autosize. Is what I'm trying to do even possible? Thanks!</p>