以下是引用gdlgh在2008-12-28 23:20:00的发言:导航栏每个页面有个ID或页面,只要判断返回那个ID或页面就打开那个表就行了!
SelectedIndex
整数型,返回或者设置导航栏选定页面的位置。
示例
Dim
Bar As WinForm.NavBar
Bar = e.Form.Controls("NavBar1")
Select Case Bar.SelectedIndex
Case 0
Maintable = Tables("表1")
Case 1
Maintable = Tables("表2")
Case 2
Maintable = Tables("表3")
Case 3
Maintable = Tables("表N")
End Select
看了几次帮助,仍不是很懂,能否做个实例。