你会需要用到某些下列API函数调用GetForegroundWindow ,取得当前顶层窗口SetForegroundWindow ,设置某窗口为顶层SetWindowPos ,设置窗口是否为顶层GetWindow ,取得当前第一层或下一层的窗口
运行的时候加上一句form.visible=false