子窗口关闭时通知调用窗口
我有一个父窗口创建一个子窗口。当子窗口关闭时,我想让父窗口收到通知,以便刷新它。子窗口不能是模态的。用户需要能够与应用程序的其余部分进行交互。
I have a parent window create a child window. When the child window closes, I want to have the parent window receive notification so that it can be refreshed. The child window cannot be modal. The user needs to be able to interact with the rest of the application.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在父窗口中为
Closed 创建一个处理程序子窗口对象上的
事件。当子窗口关闭时,将调用您的处理程序并通知父窗口。In the parent window create a handler for the
Closed
event on the child window object. When the child window is closed, your handler will be called and the parent window will be notified.