有没有方法来设置tabControl的选定选项卡而没有selectedIndexchanged事件触发?设置选定的选项卡没有selectedIndexChanged事件触发
例如在这里,事件触发选择myTabPage2时,因为myTabPage1是默认:
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
聪明。似乎运作良好。我感激不尽。 :-) – Urbycoz 2012-04-26 11:31:24