The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
How do I enable the context menu to be opened on a tab that is not currently in focus? I want to enable the user to close the tab without having to draw the screen. Currently when you right click on a tab that is not in focus, this bring the tab into focus. I do not want this to happen.
MJMano J Syncfusion Team October 21, 2009 10:32 AM UTC
Hi James,
You can prevent the tab getting selected by cancelling the selected index changing event when right click is made. private void tabbedMDIManager_TabControlAdded(object sender, Syncfusion.Windows.Forms.Tools.TabbedMDITabControlEventArgs args) { tabControl = args.TabControl; tabControl.SelectedIndexChanging += new SelectedIndexChangingEventHandler(tabControl_SelectedIndexChanging); }