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.
Syncfusion Feedback

Multiple inheritances issue inacse of “GridbagLayout”

Thread ID:

Created:

Updated:

Platform:

Replies:

100005 Jun 26,2011 09:29 AM UTC Jun 28,2011 04:27 AM UTC Windows Forms 1
loading
Tags: Tools
uday
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.

Regards,
Vallarasu 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.

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

;