Reputation: 15903
What shall i use to make a spacer between elements in visual studio like that in QT http://www.tuxradar.com/files/qt_menq_spacers.jpg
Upvotes: 0
Views: 379
Reputation: 84765
You might be able to use the Margin
and Padding
properties of any control to that end.
Edit: In response to your comment, I get the impression that your main goal is not to add a certain amount of space between controls (which would be what the Margin
and Padding
properties are for), but that you want to align controls along certain lines or edges. In Winforms, this is usually done via a combination of panels and the proper use of a control's Anchor
and Dock
properties.
Upvotes: 1
Reputation: 5070
You can use Anchor
property to position controls relative to the dialogs edges.
And you can use a couple of panels to separate controls into different areas.
But I don´t think there is some thing like the spacers you mentioned in the question.
Upvotes: 1