TreeView控件的NodeMouseClick事件代码:
If e.Node.Level = 1 Then MainTable = Tables(e.Node.Text) Forms(e.Node.Text).show()End If
------------------
项目有些表有窗口,有些没有。
如果没有窗口,单击节点会弹出一个对话框“不存在这个窗口”。
不想出现这个提示,怎么办?
If Forms(e.Node.Text) = true
Forms(e.Node.Text).show()End If
好像这样写代码很山寨,正确的应该是?