会,如果不关闭导航窗口,要加个判断
如:
For Each frm As Winform.Form In Forms If frm.Name = "窗口1" Then frm.Open() Else If frm.Name <> "导航" Then frm.Close() End If End IfNext