SeletedIndexChanged:
Dim tab As WinForm.TabControl = e.Form.Controls("TabControl1")If tab.SelectedIndex = 1 Or tab.SelectedIndex = 2
tab.SelectedIndex = 0End If