VS
Vallarasu S
Syncfusion Team
June 28, 2011 04:27 AM UTC
Hi Uday,
Thanks for your interest in Syncfusion products.
GridBagLayout does not requires the container to inherit from the 'GridBagLayout' class, The form in the sample is named so to indicate the layout the form is applied with.
You can have GridBagLayout in your form along with RibbonForm appearance as follows, GridBagLayout will be applied to the container control assigned to the GridBagLayout.ContainerControl API. You can even place the controls inside a panel and assign this to the GridBagLayout.
public class MyForm : RibbonForm
{
Syncfusion.Windows.Forms.Tools.GridBagLayout gridBagLayout1;
System.ComponentModel.IContainer components;
public MyForm()
{
this.components = new System.ComponentModel.Container();
gridBagLayout1 = new GridBagLayout(this.components);
gridBagLayout1.ContainerControl = this;
}
}
Let me know if you need any further assistance.
Regards,
Vallarasu S.