Filling a control in CardLayout

Is it possible to add a control to a CardLayout and have it fill CardLayout''s parent container? The controls that I add to the CardLayout always seem to stay centered without filling the entire container, even though I set Dock = DockStyle.Fill. Thanks.

1 Reply

AD Administrator Syncfusion Team August 2, 2006 11:02 AM UTC

Hi Stephen,

Thanks for using Essential tools.

You can set the LayoutMode property of card layout to Fill, this property will fill the control inside the entire container.

Here is the code snippet:

this.cardLayout1.LayoutMode = Syncfusion.Windows.Forms.Tools.CardLayoutMode.Fill;


I have attached a sample. Please take a look and let me know if you have any questions.

cardlayout.zip


Best Regards,
Seetha

Loader.
Up arrow icon