Any idea why my button1_click event handler can't access the collection I created in the form_load event? I don't know what I'm doing wrong...
Code:Public Sub Form1_Load.... Dim family As New Collection() End Sub Private Sub Button1_Click... family.Add("Tom") ' Error: name "family" not declared!! End Sub




Reply With Quote