Wazery
Wazery

Reputation: 15903

Spacer between elements in visual studio

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

Answers (2)

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

Jens Granlund
Jens Granlund

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

Related Questions