protected virtual void OnDeselecting (TabControlCancelEventArgs e)
{
TabControlCancelEventHandler eh = (TabControlCancelEventHandler) (Events[DeselectingEvent]);
if (eh != null)
eh (this, e);
if (!e.Cancel)
OnDeselected (new TabControlEventArgs (SelectedTab, selected_index, TabControlAction.Deselected));
}