在 MDI vb.net 项目中,什么会导致窗体失去与其父窗体的链接?
我们的 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
该死的用户。
看起来这是通过在打开新表单之前关闭当前表单来复制的。 (就我而言,在生成报告时)小沙漏图标显然没有足够的威慑力。
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.