0

I have a Form and I want to add two controls: a ComboBox and a ListView. The ComboBox has to occupy the upper part, while the ListBox all the remaining space.

Like in the following picture:

enter image description here

What have I to do? What are the right properties to modify?

Nick
  • 10,309
  • 21
  • 97
  • 201

1 Answers1

2

Create a new form, then add you two controls - the ComboBox and the ListBox. Now, first in the designer set the ComboBoxs Dock property to Top. Then select the ListBox and set its Dock property to Fill. This will do what you require.

I hope this helps.

MoonKnight
  • 23,214
  • 40
  • 145
  • 277
  • In this way my ListView fills the entire form... EDIT: I have to add first the ListView, and it works. – Nick Oct 06 '12 at 12:37