Frage

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?

War es hilfreich?

Lösung

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.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top