| Visual Basic (Declaration) | |
|---|---|
Public Property CloseButtonLocation As TabCloseButtonLocation | |
| C# | |
|---|---|
public TabCloseButtonLocation CloseButtonLocation {get; set;} | |
| Exception | Description |
|---|---|
| InvalidEnumArgumentException | The value assigned is not defined in the TabCloseButtonLocation enumeration. |
Setting this property to None will prevent a middle mouse button click from closing a tab.
The following code demonstrates how to control the behavior of a close button within a tab at a tab control level.
| Visual Basic | Copy Code |
|---|---|
Imports Infragistics.Win | |
| C# | Copy Code |
|---|---|
using System.Windows.Forms; | |
