When the current tab changes in a System.Windows.Forms.TabControl, the following events occur in the following order.
These events let you perform tasks such as canceling a tab change if a System.Windows.Forms.TabPage is in an invalid state or updating the state of a newly displayed System.Windows.Forms.TabPage.
The current tab changes when the user clicks a tab, when you call the erload:System.Windows.Forms.TabControl.DeselectTab or erload:System.Windows.Forms.TabControl.SelectTab method, or when you change the value of the TabControl.SelectedIndex or TabControl.SelectedTab property.