this will probably be simple to answer for the right person, I have a form and I need to pass data to another form, I have decided to use a module to store the data I want to pass, here's what code resides on the first form:
All I want to do is call a procedure and the data be sent to themodule, and the data to be stored for when I next need it on the second form, here's what i have but doesn't seem to work:
As you can tell I am very new to vb.net, but I am hopefully on the right lines and somebody will understand what I mean and can help further.
Also as a side note is this a good way to move data between forms????
VB.NET:
Private Sub CreateNewEventOrAppointmentToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CreateNewEventOrAppointmentToolStripMenuItem.Click
Dim person_id As String
Dim calendar_id As String
person_id = TextBox6.Text
calendar_id = TextBox3.Text
get_person_id() = person_id
get_calendar_id() = calendar_id
frmEvent.Show()
Me.Hide()
End Sub
All I want to do is call a procedure and the data be sent to themodule, and the data to be stored for when I next need it on the second form, here's what i have but doesn't seem to work:
VB.NET:
Module Module1
Private Sub get_person_id(ByVal person_id As String)
End Sub
Private Sub get_calendar_id(ByVal calendar_id As String)
End Sub
End Module
As you can tell I am very new to vb.net, but I am hopefully on the right lines and somebody will understand what I mean and can help further.
Also as a side note is this a good way to move data between forms????