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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback


Thread ID:





59594 Apr 18,2007 08:31 AM UTC Apr 20,2007 04:02 PM UTC WinForms 1
Tags: Tools
Simon Kakon
Asked On April 18, 2007 08:31 AM UTC

How can I Add controls dynamically to a flowLayout panel ?


Murugan [Syncfusion]
Replied On 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.


Thanks for using Syncfusion products.

Murugan P.S


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon