子窗口关闭时通知调用窗口

发布于 2025-01-03 23:11:30 字数 78 浏览 1 评论 0原文

我有一个父窗口创建一个子窗口。当子窗口关闭时,我想让父窗口收到通知,以便刷新它。子窗口不能是模态的。用户需要能够与应用程序的其余部分进行交互。

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

毁梦 2025-01-10 23:11:30

在父窗口中为 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文