ShowDialog的奇怪问题 [英] Strange Problem With ShowDialog
本文介绍了ShowDialog的奇怪问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨我的朋友
i创建了许多c#应用程序直到现在,这是为了防止一些错误使用showdialog()来显示表单。
但是在最后两个应用程序中,当我想用showDialog方法显示某些形式时,我会遇到奇怪的问题,
而show方法还可以。
i在ShowDialog Method Defined的基础上得到Object refrence not set ...这样的错误。
为什么是Occured以及我如何修复它?
谢谢你们
best
hi my friends
i has created many c# application until Now , that for prevent some bugs used showdialog() to show forms .
but in last two application i get strange problem when i want show some form with showDialog method,
whereas show method is ok .
i get error like "Object refrence not set ..." on line that ShowDialog Method Defined .
why is Occured And How i can Fix it ?
Thanks guys
best
推荐答案
调试您的应用程序并查看您使用 null
对象引用的位置。
Debug your application and see where you are using a null
object reference.
这篇关于ShowDialog的奇怪问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文