TabControlArray.Deselected 事件
定义
当取消选择选项卡时发生。Occurs when a tab is deselected.
public:
event System::Windows::Forms::TabControlEventHandler ^ Deselected;
public event System.Windows.Forms.TabControlEventHandler Deselected;
member this.Deselected : System.Windows.Forms.TabControlEventHandler
Public Custom Event Deselected As TabControlEventHandler
Public Event Deselected As TabControlEventHandler
事件类型
注解
当当前选项卡在中更改时 TabControl ,以下事件将按以下顺序发生。When the current tab changes in a TabControl, the following events occur in the following order.
Deselected
如果 TabPage 处于无效状态或更新新显示的状态,这些事件可以让你执行一些任务,如取消选项卡更改 TabPage 。These events let you perform tasks such as canceling a tab change if a TabPage is in an invalid state or updating the state of a newly displayed TabPage.
当用户单击某个选项卡、调用 DeselectTab 或 SelectTab 方法时,或者当你更改或属性的值时,当前选项卡会发生更改 SelectedIndex SelectedTab 。The current tab changes when the user clicks a tab, when you call the DeselectTab or SelectTab method, or when you change the value of the SelectedIndex or SelectedTab property.
有关如何处理事件的详细信息,请参阅 处理和引发事件。For more information about how to handle events, see Handling and Raising Events.
备注
Microsoft.VisualBasic.Compatibility.VB6 命名空间中的函数和对象用于工具从 Visual Basic 6.0 升级到 Visual Basic。Functions and objects in the Microsoft.VisualBasic.Compatibility.VB6 namespace are provided for use by the tools for upgrading from Visual Basic 6.0 to Visual Basic. 多数情况下,这些函数和对象可再现 .NET Framework 中其他命名空间的功能。In most cases, these functions and objects duplicate functionality that you can find in other namespaces in the .NET Framework. 只有当 Visual Basic 6.0 代码模型与 .NET Framework 实现有显著区别时,才必须使用这些函数和对象。They are necessary only when the Visual Basic 6.0 code model differs significantly from the .NET Framework implementation.