Sizable multiple list boxes

I saw a program which had three list boxes side by side and they were sizable.  How did they do that.  The list boxes have a common side and when you drag the bar one box will get smaller and the adjacent one will get larger.  The one one the other end stays the same.  Can we do this in VB.NET. I have looked everywhere for documentation on the list box control that would tell me that.  Is is possible to resize one list box at runtime.  Thanks. 

Answer this question

Sizable multiple list boxes

  • Jose Picon

    You are too cool.  Thanks

  • Beleebe

    Ok, start up a new (blank) form.

    add a ListBox, set its DockStyle to Fill

    add a Splitter Control

    add another ListBox, set its DockStyle to Fill

    add another Splitter Control

    add another ListBox, set its DockStyle to Fill

    That should do it!  :) 

  • marta

    just glad to help!  :)  The Splitter Control is one funky beast.  So you have to add things in the right order.
  • Sizable multiple list boxes