开发者

C# Flow Layout Panel Line break or New line

I am adding some controls to Flow layout panel. In between some controls I need a line break. How can 开发者_开发百科I achieve this please. Thanks


After adding the last control before the break, call flow.SetFlowBreak(lastControl, true).

Note: lastControl is the control that you want set new line after that.


The best answer is by far the comment made by Brian Gillespie:

Set FlowBreak from the VS2010 GUI: Scroll to the bottom of the PropertyPanel for the control before the line break, and set FlowBreak to True.


You need a custom control which resizes itself to the end of a flow panel, and has a zero height / width, depending upon the flow direction of a flow panel

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜