I have a panel with two controls inside. I wish they were sticked to border of panel (panel has some width and height that cant be changed) but have possibility to resize the amount of space they (controls) get from panel in vertical direction.
panel.Controls.Add(listview1);
panel.Controls.Add(listview2);
Two listviews are placed one after another (vertically). I wish to have possibility to “change height” of them (by choosing border between them to resize).
I hope you understood what I mean. Thanks for help in advance.
I suggest using the SplitContainer control from the Containers section of your designer toolbox.
Here’s an MSDN training video on using a SplitContainer.