停留在页面集合的页签上自动显示 Post By:2013/1/3 10:44:00 [显示全部帖子]
以下是在 MouseHover 写的代码,但是没反应,请教哪里出错了。
Dim nm As String = e.Sender.Name Dim tab As WinForm.TabControl = e.Form.Controls("TabControl1") If nm = "订单状况" Then tab.SelectedIndex = 0 ElseIf nm = "生产状况" Then tab.SelectedIndex = 1 ElseIf nm = "财务状况" Then tab.SelectedIndex = 2 ElseIf nm = "天 猫" Then tab.SelectedIndex = 3 End If