R
Rites
Guest
All right, I have two forms in a VB .NET project. The first form (form1) is the main menu. When a utton is clicked it opens another form. On the other form I am capturing data that was placed in text boxes into an array. Now how do I access that array in the first form??? This is the code for what I got so far:
*button click on main form*
Private Sub btnInput_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnInput.Click
Dim x As New input()
x.Show()
End Sub
*loading the array*
Private Sub btnFinish_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnFinish.Click
Dim buffer(11) As Long
buffer(0) = box1.Text
buffer(1) = box2.Text
buffer(2) = box3.Text
buffer(3) = box4.Text
buffer(4) = box5.Text
buffer(5) = box6.Text
buffer(6) = box7.Text
buffer(7) = box8.Text
buffer(8) = box9.Text
buffer(9) = box10.Text
buffer(10) = box11.Text
buffer(11) = box12.Text
Me.Close()
End Sub
Any help would be greatly appreciated!
*button click on main form*
Private Sub btnInput_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnInput.Click
Dim x As New input()
x.Show()
End Sub
*loading the array*
Private Sub btnFinish_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnFinish.Click
Dim buffer(11) As Long
buffer(0) = box1.Text
buffer(1) = box2.Text
buffer(2) = box3.Text
buffer(3) = box4.Text
buffer(4) = box5.Text
buffer(5) = box6.Text
buffer(6) = box7.Text
buffer(7) = box8.Text
buffer(8) = box9.Text
buffer(9) = box10.Text
buffer(10) = box11.Text
buffer(11) = box12.Text
Me.Close()
End Sub
Any help would be greatly appreciated!