'System.NullReferenceException'ProgressBar

时间:2014-04-23 15:00:42

标签: vb.net

我尝试了表单关闭但是给了我这个错误

 'System.NullReferenceException' Object reference not set to an instance of an object.

我认为ProgressBar处于非活动状态,我尝试使用rhis代码,但错误再次显示。 我的代码:

 If ProgressBar IsNot Nothing Then ProgressBar.Value = 0
我错了吗? 如何选择?

0 个答案:

没有答案