当我看到这种代码时,我直接想到IsDisposed 将frm设置为空,没有任何意义,顺便说一下,当 仍有对该对象的引用。 http://msdn.microsoft.com/library/de...posedtopic.asp 来自Hefried的消息中的一段代码 \\\\ 如果foSear chForm什么都没有orElse foSearchForm.IsDisposed然后 foSearchForm =新的FrmSearchForm() 结束如果 foSearchForm.Show() /// 我希望这有帮助吗? Cor When I see this kind of code I think directly on "IsDisposed" Setting a frm to nothing has no sense by the way, this will be ignored whenthere is still a reference to that object. http://msdn.microsoft.com/library/de...posedtopic.asp A piece of code from a message from Hefried\\\\If foSearchForm Is Nothing OrElse foSearchForm.IsDisposed ThenfoSearchForm = New FrmSearchForm()End IffoSearchForm.Show()/// I hope this helps? Cor 当我看到这种代码时,我直接想到IsDisposed 设置一个frm到没什么没有意义的方式当 仍有对该对象的引用时,这将被忽略。 http://msdn.microsoft.com/library/de...posedtopic.asp 来自Hefried的消息中的一段代码 \\\\ 如果foSearchForm没什么,那么foSearchForm.IsDisposed那么 foSearchForm =新的FrmSearchForm() 结束如果 foSearchForm.Show() /// 我希望这有帮助吗? Cor When I see this kind of code I think directly on "IsDisposed" Setting a frm to nothing has no sense by the way, this will be ignored whenthere is still a reference to that object. http://msdn.microsoft.com/library/de...posedtopic.asp A piece of code from a message from Hefried\\\\If foSearchForm Is Nothing OrElse foSearchForm.IsDisposed ThenfoSearchForm = New FrmSearchForm()End IffoSearchForm.Show()/// I hope this helps? Cor 当我看到这种代码时,我直接想到IsDisposed 设置一个frm到没有任何东西没有任何意义的方式,这将被忽略当仍然有引用该对象。 http://msdn.microsoft.com/library/de...posedtopic.asp 来自邮件的一段代码来自Hefried \\\\ 如果foSearchForm什么也没有,那么foSearchForm.IsDisposed那么 foSearchForm =新的FrmSearchForm()结束如果 foSearchForm.Show () /// 我希望这会有所帮助? When I see this kind of code I think directly on "IsDisposed" Setting a frm to nothing has no sense by the way, this will be ignored when there is still a reference to that object. http://msdn.microsoft.com/library/de...posedtopic.asp A piece of code from a message from Hefried \\\\ If foSearchForm Is Nothing OrElse foSearchForm.IsDisposed Then foSearchForm = New FrmSearchForm() End If foSearchForm.Show() /// I hope this helps? Cor 这篇关于太多的表单实例......的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
10-10 02:31