For Each frm As WinForm.Form In Forms If frm.TableName = "表A" Then Output.Show(frm.Name) End IfNext
是不是这样?可以找到表A中的所有窗口名.