How to place Forms controls?
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:
What have I to do? What are the right properties to modify?
Lösung
Create a new form, then add you two controls - the ComboBox
and the ListBox
. Now, first in the designer set the ComboBox
s 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