开发者

C# Flow Layout Panel Line break or New line

开发者 https://www.devze.com 2023-02-11 07:00 出处:网络
I am adding some controls to Flow layout panel. In between some controls I need a line break. How can 开发者_开发百科I achieve this please.

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

精彩评论

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