FlowLayout

Hi,
How can I Add controls dynamically to a flowLayout panel ?

Thanks

1 Reply

MU Murugan Syncfusion Team April 20, 2007 04:02 PM UTC

Hi Simon,

In FlowLayout, there is a property called ContainerControl specifies the ContainerControl that this FlowLayout manager will layout. When we set ContainerControl for the FlowLayout, we could add controls to the Container. The FlowLayout manages the layouting of all dymically added controls.

Please refer to the attached sample. In this controls are randomly added in panel and ContainerControl is not. When you click Add ContainerControl, ContainerControl for FlowLayout has set and controls are layout. Now you click second button, Panel is added dymically to the FlowLayout and aligned automatically. Please let me know if it helps you.

http://websamples.syncfusion.com/samples/Tools.Windows/F59594/Main.htm

Thanks for using Syncfusion products.

Regards,
Murugan P.S

Loader.
Up arrow icon