Quote Originally Posted by LaVolpe View Post
Thanx for the info on the Private values. That is information I wish I would have learned 10+ years ago. So, if I had declared myArray() in the declarations portion of the form and later resized it to say 10000 elements, when the form unloads that array's elements are not cleared and neither is the memory used for it. I now know the answer to that question is not what I expected before I verified your statement (verified!). I think I will take a look at some of my more recent apps for potential zeroizing of private variable declarations, or setting the unloaded form to Nothing.

So in other words. Private/Public variables declared in a form's declaration section are "static" and only when the form is set to Nothing is the memory for those variables released. Gotcha.

Edited: I definitely learned something new today as may many others that read this thread. Thanx.
You're welcome. We learn from each other.