开发者

Spacer between elements in visual studio

开发者 https://www.devze.com 2022-12-28 06:59 出处:网络
What shall i use to make a spacer between elements in visua开发者_如何转开发l studio like that in QT

What shall i use to make a spacer between elements in visua开发者_如何转开发l studio like that in QT http://www.tuxradar.com/files/qt_menq_spacers.jpg


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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消