| Visual Basic (Declaration) | |
|---|---|
Public Event InitializeContextMenu() As MdiTabContextMenuEventHandler | |
| C# | |
|---|---|
public event MdiTabContextMenuEventHandler InitializeContextMenu() | |
The InitializeContextMenu is invoked when the end user right clicks on an MdiTab and when a tab is released within the mdi client area in an area that would not result in a new tab group or tab move. The MdiTabContextMenuEventArgs.ContextMenuType indicates the reason that the context menu is being displayed. The Cancel parameter can be set to true to prevent the context menu from being displayed.
The following sample demonstrates how to use the InitializeContextMenu event.
For an overview of how to handle events in Visual Basic or Visual C#, see Event Handlers in Visual Basic and Visual C#. For specific information and code examples illustrating how to consume events in your application, see Consuming Events in the .NET Framework Developer's Guide.
For an overview of how to handle events in Visual Basic or Visual C#, see Event Handlers in Visual Basic and Visual C#. For specific information and code examples illustrating how to consume events in your application, see Consuming Events in the .NET Framework Developer's Guide.
| Visual Basic | Copy Code |
|---|---|
Imports Infragistics.Win | |
| C# | Copy Code |
|---|---|
using Infragistics.Win; | |
