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.

Ribbon task

Thread ID:

Created:

Updated:

Platform:

Replies:

121418 Dec 11,2015 08:57 AM Aug 24,2016 07:45 AM Windows Forms 3
loading
Tags: RibbonControlAdv
Robins Harawa
Asked On December 11, 2015 08:57 AM

How can i achieve the following using syncfusionessentialwindowsforms. Mind you i have already installed it and integrated with visual studio



Attachment: ribon_f25455a5.zip

Senthil Kumaran Rajan [Syncfusion]
Replied On December 12, 2015 04:25 AM

Hi Robins,

Thanks for contacting Syncfusion Support.

The reported requirement can be achieved by using the control named RibbonControlAdv. We hope your requirement is to add the ToolStripTabItem and ToolStripEx in RibbonControlAdv. If so, please make use of the below code example.

Code Example[C#]:

ToolStripTabItem tab = new ToolStripTabItem();

//To add ToolStripTabItem in RibbonControlAdv

this.ribbonControlAdv1.Header.AddMainItem(tab);

ToolStripEx Strip = new ToolStripEx();

//To Add ToolStripEx in RibbonControlAdv panel

(this.ribbonControlAdv1.SelectedTab as ToolStripTabItem).Panel.Controls.Add(Strip);


We have prepared the sample for your reference which can be download from here.

Sample : http://www.syncfusion.com/downloads/support/forum/121418/ze/RibbonTask1706593665

Video : http://www.syncfusion.com/downloads/support/forum/121418/ze/RibbonItemsAdd349345975

Please refer to the below screenshot.

Screenshot:

Regards,
Senthil

Robins Harawa
Replied On August 23, 2016 07:21 AM

Am looking for visual basic code not C# as you have shown. In addition I want it to be found in the toolbox so that i can drag and drop to the form

Mariappan S [Syncfusion]
Replied On August 24, 2016 07:45 AM

Hi Robins,   
  
We have modified last updated sample using Visual Basic code.  Please refer the code example and sample from the below.   
   
Code Example[Visual Basic]:

   
Dim tab As New ToolStripTabItem()   
   
'To add ToolStripTabItem in RibbonControlAdv   
   
Me.ribbonControlAdv1.Header.AddMainItem(tab)   
   
Dim Strip As New ToolStripEx()   
   
'To Add ToolStripEx in RibbonControlAdv panel   
   
TryCast(Me.ribbonControlAdv1.SelectedTab,ToolStripTabItem).Panel.Controls.Add(Strip)   
  
    
Please download the sample from the below link   
  
Sample link: RibbonTask
 
  
Query: “I want it to be found in the toolbox so that i can drag and drop to the form”    
   
Our ToolStripTabItem is an inner level item of RibbonControlAdv. So we cannot provide this control to ToolBox. But we can add ToolStripTabItem by using SmartTag in Designerview. If we misunderstood your requirement, could you please provide more information about your requirement. This would help to proceed further.   
  
Regards,   
Mariappan 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.

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.

;