你好!
通过目录树NodeMouseClick切换到TabControl的不同页面,TabControl不同页面是不同的Table,如何把页面显示的Table自动识别为当前表
Dim p As WinForm.TabPage = e.sender.SelectedPage
For Each c As object In p.Children
If Typeof c Is winform.Table Then
c.Select
Exit For
Else If Typeof c Is winform.SplitContainer Then
For Each cc As object In c.panel1.children
If Typeof cc Is winform.Table Then
cc.Select
Exit For
End If
Next
For Each cc As object In c.panel2.children
If Typeof cc Is winform.Table Then
cc.Select
Exit For
End If
Next
End If
Next