If Forms("窗口名").Opened then
Dim tab As WinForm.TabControl = Forms("窗口名").Controls("TabControl1") tab.SelectedIndex = 1
End If