how do i access a form1 arraylist from form2 to write a textfile and from form3 to display in a lab

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
hello again ty all for your help though im stuck again and need your wizdomi want to reffer to values in an array list in form 1. ist a list of filenames, i want to use it to save the text from textboxes on form2 and finally display it in a label from form3 as a summays of the saved file.i read that if i launch form1 from a main() module all variables made there will be available in every form but i cant get it to work...
my main() MODULE FOR STARTUP:
Module Module1
Public myForm1 As New Form1
Public myForm2 As New AddToDatabase

Sub Main(ByVal argv As String())

Application.Run(myForm1)

End Sub
End Module
And i tried accessing the array list in form2 with a msgbox() to test it but it wont work...
MessageBox.Show(Form1.itemnames(0).ToString)
im still learning syntax and im not good with file access levels between classes, modules, forms subs, ect. all help is greatly appreciated. tyvm in advance [o_o]

View the full article
 
Back
Top