在 MDI vb.net 项目中,什么会导致窗体失去与其父窗体的链接?

发布于 2024-07-14 17:09:43 字数 165 浏览 4 评论 0原文

我们的 MDI vb.net 项目中的某些表单会定期返回 me.parent。 我在调试时从未见过这种情况,但它确实会在我们的客户端计算机上导致未处理的异常 - 并且它们打开的表单因情况而异。

是否有任何类型的事件,除了“me.parent = Nothing”之外,可能会导致此链接被破坏?

Very periodically, some of our forms in our MDI vb.net project will return me.parent as nothing. I've never seen this while debugging, but it does cause an un-handled exception on our client machines - and the form that they have open varies from case to case.

Is there any sort of event, short of a 'me.parent = nothing', that can cause this link to be broken?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

姜生凉生 2024-07-21 17:09:43

该死的用户。

看起来这是通过在打开新表单之前关闭当前表单来复制的。 (就我而言,在生成报告时)小沙漏图标显然没有足够的威慑力。

Freakin' users.

It looks like this is replicated by closing the current form before the new form can be opened. (In my case, while a report is generating) The little hour-glass icon wasn't apparently deterrent enough.

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