以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  [求助]窗口表位置  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=171406)

--  作者:lgj716330
--  发布时间:2021/8/28 21:18:00
--  [求助]窗口表位置
按钮Button
Dim tt1 As WinForm.Table = Forms("窗口1").Controls("Table1")
Dim tt2 As WinForm.Table = Forms("窗口1").Controls("Table2")
If tt2.TopMost=True Then
tt1.TopMost=True
End If

想实现如果当前显示的窗口table是Table2,则返回到table1,上面代码没起作用,要怎么改呢

--  作者:有点蓝
--  发布时间:2021/8/29 20:04:00
--  
不需要看到的设置为隐藏

Dim tt2 As WinForm.Table = Forms("窗口1").Controls("Table2")
If tt2.visible=True Then
tt2.visible=false
End If