第一个按钮的代码改为:
Dim tab As WinForm.TabControl = e.Form.Controls("TabControl1")For i As Integer = 0 To 4 tab.TabPages(i).visible = (i = 0)Nexttab.SelectedIndex = 0