Vunpac
November 7th, 2009, 02:54 AM
Hey I'm trying to create a program that allows a user as many forms as needed. to do so I know I need to use the arraylist. I'm not very familure with it though. so how would I use it so each time an event occures, it creats and manipulates a new form and can later accses the array to further manipulate any of the forms that were created?
I was kinda thinking something like this would work but lol I couldn't have been more wrong.
Dim FormArray as ArrayList
Sub Fuction()
Dim NewForm as form
FormArray.add(New Form)
NewForm = FormArray(0)
NewForm.Property = Value
End Sub
Yes I am new at this.. I just stared going to school for it and our teacher isn't familure with VB at all so I'm kinda in the dark going ahead.. So if anyone could please help that would be awesome. Thanks :)
I was kinda thinking something like this would work but lol I couldn't have been more wrong.
Dim FormArray as ArrayList
Sub Fuction()
Dim NewForm as form
FormArray.add(New Form)
NewForm = FormArray(0)
NewForm.Property = Value
End Sub
Yes I am new at this.. I just stared going to school for it and our teacher isn't familure with VB at all so I'm kinda in the dark going ahead.. So if anyone could please help that would be awesome. Thanks :)