N
Nightmare
Guest
Hey there. I'm wondering why this code is not working for me:
It seems as if only some of the pictures within panContainer are being removed. If I repeated this code again a few more of the pictures in panContainer will be removed. I have no idea what is going on. How can I completely remove any controls which might exist within panContainer? Any hints you could give me would be appreciated
Visual Basic:
Dim pic As Control
For Each pic In panContainer.Controls
panContainer.Controls.Remove(pic)
Next pic
It seems as if only some of the pictures within panContainer are being removed. If I repeated this code again a few more of the pictures in panContainer will be removed. I have no idea what is going on. How can I completely remove any controls which might exist within panContainer? Any hints you could give me would be appreciated