此主题相关图片如下:qq图片20161201160440.png

如上图。
左侧为导航栏,右侧为页面集合,左右的顺序和名称一一对应。
导航栏代码设置如下:
Dim tab As WinForm.TabControl = e.Form.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
Case "日常办公"
tab.SelectedIndex = 3
Case "监督检查"
tab.SelectedIndex = 4
Case "统计分析"
tab.SelectedIndex = 5
Case "其他功能"
tab.SelectedIndex = 6
End Select
在运行时,第二个页面无法正常切换和显示。
测试一:
调整页面集合的顺序为综合分布、许可审批、行政执法……
点击导航栏中的综合分布,右侧显示综合分布页面;
但点击导航栏中的许可审批,右侧无法正常显示;
但点击导航栏中的行政执法,右侧可以正常显示。
测试二:
调整页面集合的顺序为综合分布、行政执法、许可审批……
点击导航栏中的综合分布,右侧显示综合分布页面;
但点击导航栏中的行政执法,右侧无法正常显示;
但点击导航栏中的许可审批,右侧可以正常显示。
不知道问题出在什么地方……
[此贴子已经被作者于2016/12/1 16:32:03编辑过]