How to place Forms controls?
Domanda
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?
Soluzione
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.
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow