selectedIndexchangedイベントを発生させずにtabControlの選択されたタブを設定する方法はありますか?
たとえば、myTabPage1がデフォルトであるため、myTabPage2を選択するとイベントが発生します。
Private Sub setupTabControl
If blnHasAccount=true then
MyTabControl.selectedTab=myTabPage1
else
MyTabControl.selectedTab=myTabPage2
End if
End sub
Private Sub MyTabControl_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyTabControl.SelectedIndexChanged
'Do stuff (but only when user has actually changed the tab themselves)
End Sub