Ok, I have controls being added using Load()
Now I want to remove controls. So I do:
Unload cmdButtons(5)
I have various places in my code where I loop through the
control array:
dim iButton as Integer
For iButton = 0 to cmdButtons.Count - 1
cmdButtons(iButton).Visible = True
Next
The problem is that even though the control has been unloaded,
IsNull and IsObject still show them as ojbects. The Visible line
in the loop fails for buttons that have been removed.
How do I know if an element in the control array has a valid
object in it?
Thanks
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people