We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

FlowLayout

Thread ID:

Created:

Updated:

Platform:

Replies:

59594 Apr 18,2007 04:31 AM Apr 20,2007 12:02 PM Windows Forms 1
loading
Tags: Tools
Simon Kakon
Asked On April 18, 2007 04:31 AM

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

Thanks

Murugan [Syncfusion]
Replied On April 20, 2007 12:02 PM

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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;