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

Multiple inheritances issue inacse of “GridbagLayout”

Thread ID:





100005 Jun 26,2011 09:29 AM UTC Jun 28,2011 04:27 AM UTC WinForms 1
Tags: Tools
Asked On June 26, 2011 09:29 AM UTC

The form did Inherit RibbonForm, I had removed the RibbonForm Inheritance as I was checking “GridbagLayout” The Gridbaglayout sample shows that the form has to inherit the gridbaglayout Class. .NET Does not allow multiple inheritances so how to proceed in this case, please suggest.

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

Vallarasu 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