File button/tab crashes application

Due to this I would like to handle the functions myself and just get rid of the file tab.

I am creating the spreadsheet and ribbon in code and multiple will be created through the application so I need to get rid of it 

3 Replies

TL Thirumurugan Loganathan Syncfusion Team October 11, 2017 12:25 PM UTC

Hi Joseph, 
 
You can achieve the requirement “Hide File menu tab from the ribbon” by setting the MenuButtonVisible property of the ribbon as false. Please find the below code sample for your reference. 
 
 
private void InitializeComponent() 
{ 
       spreadsheet = new Spreadsheet(); 
       SpreadsheetRibbon ribbon = new SpreadsheetRibbon() { Spreadsheet = spreadsheet }; 
       ribbon.MenuButtonVisible = false; 
       this.DataBindings.Add("Text", this.spreadsheet, "FileName"); 
       spreadsheet.Dock = DockStyle.Fill; 
       spreadsheet.Anchor = AnchorStyles.Left | AnchorStyles.Top; 
       this.Controls.Add(spreadsheet); 
       this.Controls.Add(ribbon); 
} 
 
 
 
Regards, 
Thirumurugan 



JW Joseph Williamson October 11, 2017 11:43 PM UTC

okay and how can I replace the button?



TL Thirumurugan Loganathan Syncfusion Team October 12, 2017 02:13 PM UTC

Hi Joseph, 
 
We could not able to understand your requirement. Actually if you want to customize the items under the ribbon menu, which can able to achieved by ribbon customization in WinForms. So can you please share your exact requirement to give the optimal solution for your query. 
 
 
Regards, 
Thirumurugan 


Loader.
Up arrow icon