哪位老兄,帮小弟看下代码。设计了nurbar联动页面集合 与 nurbar联动表格切换的两段代码。代码没报错,但切换效果出不来,请哪位帮小弟诊断诊断。nurbar在侧边窗口,页面集合在主窗口;表格是普通表格。
-----------------------------------------------------------------------------------------------------------
Dim bar As WinForm.NavBar = e.sender
Select Case bar.SelectedPage.ButtonText
Case "页面1"
MainTable = Tables("表A")
Case "页面2"
MainTable = Tables("表B")
Case "页面3"
MainTable = Tables("表C")
End Select
-----------------------------------------------------------------------------------------------------------
Dim tab As WinForm.TabControl = Forms("主窗口").Controls("TabControl1")
Dim bar As WinForm.NavBar = e.sender
Select Case bar.SelectedPage.ButtonText
Case "任务总目录"
tab.SelectedIndex = 0
Case "任务进度条"
tab.SelectedIndex = 1
Case "写手客户信息"
tab.SelectedIndex = 2
-----------------------------------------------------------------------------------------------------------
此主题相关图片如下:页面集合和nurbar.jpg