【1】如果弹出窗体(比如ChildWindow)调用Show方法,并且设置了其Owner属性: ClassRootWindow { void Foo() { ChildWindow cw = newChildWindow(); cw.Owner = this;