做一个定时器,定时执行这段代码
For Each o As object In application.openforms If o.name = "Class49" OrElse o.name = "frmMdi" Then o.windowstate = 2 End IfNext