T
tshad
How do you check to see if object exists before accessing it?
For example, I may have an object that I make visible and invisible and I
need to make sure it exists as I am putting this code in a User Control.
UserLoggedOn.visible = true
If this doesn't exists, I get an error.
So how do I test for the object (vb.net and C#) before doing this code?
Thanks,
Tom
For example, I may have an object that I make visible and invisible and I
need to make sure it exists as I am putting this code in a User Control.
UserLoggedOn.visible = true
If this doesn't exists, I get an error.
So how do I test for the object (vb.net and C#) before doing this code?
Thanks,
Tom