获取所有已经运行的子窗体及名称:For Each MdiFrm As Form In MdiChildren messagebox.show(mdifrm.name.tostring())next你可以根据上面的需要再加上一些代码完善!