horizontal splitter?

  • Thread starter Thread starter Brian Henry
  • Start date Start date
B

Brian Henry

How do you get a horizontal splitter? every time i add it its always
vertical even though i have two controls one set to dock at the top and the
other to fill the bottom... when i add it, it adds as a vertical one tied to
the bottom control which is filling the bottom
 
* "Brian Henry said:
How do you get a horizontal splitter? every time i add it its always
vertical even though i have two controls one set to dock at the top and the
other to fill the bottom... when i add it, it adds as a vertical one tied to
the bottom control which is filling the bottom

Sample taken from MSDN and slightly optimized:

\\\
Dim TreeView1 As TreeView = New TreeView()
Dim ListView1 As ListView = New ListView()
Dim Splitter1 As Splitter = New Splitter()

TreeView1.Dock = DockStyle.Top
Splitter1.Dock = DockStyle.Top
listView1.Dock = DockStyle.Fill

TreeView1.Nodes.Add("TreeView Node")
ListView1.Items.Add("ListView Item")

Me.Controls.AddRange(New Control() {ListView1, Splitter1, TreeView1})
///
 
Back
Top