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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to create custom controls in MSOffice2013 and load it in WinForms RibbonControlAdv?

Platform: WinForms |
Control: RibbonControlAdv

Create and load the custom controls

In RibbonControlAdv, it is possible to host customer controls as its items. Follow the given steps to load custom control in RibbonControlAdv.

1)You can host any type of control in RibbonControlAdv, hence you need to design the requirements of the customer control.

2)Load it as the child of the PopupControlContainer.

3)Display the PopupControlContainer based on selection.


//Initialize the SizablePopupControlContainer that takes a child control and adds a sizable grip, so that the window can be sized.
SizablePopupControlContainer sizableContainer;
//Add the child controls to SizablePopupControlContainer
sizableContainer = new SizablePopupControlContainer(this.panel1);
//To hide the close button of the SizablePopupControlContainer.
this.sizableContainer.ShowCloseButton = false;
//To Add the Panel into SizablePopupControlContainer.
this.sizableContainer.ShowPopup(new Point(Cursor.Position.X - 100, Cursor.Position.Y + 45));    


'Initialize the SizablePopupControlContainer that takes a child control and adds a sizable grip, so that the window can be sized.
Private sizableContainer As SizablePopupControlContainer
'Add the child controls to SizablePopupControlContainer.
sizableContainer = New SizablePopupControlContainer(Me.panel1)
'To hide the close button of the SizablePopupControlContainer.
Me.sizableContainer.ShowCloseButton = False
'To Add the Panel into SizablePopupControlContainer.
'Displays the popup control with specified location.
Me.sizableContainer.ShowPopup(New Point(Cursor.Position.X - 100, Cursor.Position.Y + 45))

The following image shows the Custom DropDown with resizable functionality.

Show the custom dropdown

Figure 1: Output


The ShowGripper property of the SizablePopupControlContainer is set as True. Hence, it is needed to disable the ShowGripper property to hide the gripper style.


C#: http://www.syncfusion.com/downloads/support/directtrac/139141/RibbonGallery431563981.zip

VB: http://www.syncfusion.com/downloads/support/directtrac/139141/RibbonGallery_VB730974864.zip

2X faster development

The ultimate WinForms UI toolkit to boost your development speed.
You must log in to leave a comment

Please sign in to access our KB

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

Up arrow icon

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

Live Chat Icon For mobile