SelectedIndexChanged事件
Dim tab As WinForm.TabControl = e.Form.Controls("TabC窗口")
Dim tac As WinForm.TabControl = e.Form.Controls("TabC菜单")
If tab.SelectedPage IsNot Nothing
Select tab.SelectedPage.Name
Case "应用中心"
tac.SelectedIndex = 0
Case "page2"
tac.SelectedIndex = 1
Case "page3"
tac.SelectedIndex = 2
Case "窗口2"
tac.SelectedIndex = 3
End Select
End If
[此贴子已经被作者于2016/10/10 9:26:20编辑过]