对象引用未设置为对象错误的实例.

编程入门 行业动态 更新时间:2024-10-26 23:24:52
本文介绍了对象引用未设置为对象错误的实例.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

亲爱的所有人, 在我的应用程序中,有三个按钮1,2和3当我点击按钮2& 3没有错误信息.然后,当我单击按钮1并在其后单击按钮2和/或3时,出现以下错误消息: 对象引用未设置为对象的实例." 空引用异常未由用户代码处理

Dear All, In my application there are three buttons 1,2 & 3 when I click on buttons 2 & 3 there is no error message. Then when I click button 1 and after that click on buttons 2 and/or 3 I get the following error message: "Object reference not set to an instance of an object." null reference exception was unhanded by user code

推荐答案

清楚地说明了您使用三个按钮的确切含义.再次使用此按钮可能是您得到该错误的原因 错误消息的意思是,您只是忘记了将值分配给特定的变量或方法 explain it clearly what exactly you are doing with three button.if u calling same event again again with this button may be you are getting the error for that the meaning of error message is that simply you are forgetting the assign the value to the particullar varaible or method

更多推荐

对象引用未设置为对象错误的实例.

本文发布于:2023-11-16 02:35:07,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1600229.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:对象   设置为   实例   错误

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!