Greetings Everyone,
We have many forms in an Attendance application I am writing for a local school. The first form is called formBrowseAttendance and the other form is called formBrowseStudents.
In formBrowseAttendance is a textbox called editBoxStudentID.
Inside the double click event of a grid in the formBrowseStudents I am trying to populate the value of the textbox in formBrowseAttendance with this code:
Private Sub LightGridStudents_MouseDoubleClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles LightGridStudents.MouseDoubleClick
' Load the values double clicked into the attendance details section.
'--------------------------------------------------------------------
FormBrowseAttendance.editBoxStudentID.Text = LightGridStudents.CurrentRow.Cells(0).Value
MessageBox.Show(LightGridStudents.CurrentRow.Cells(0).Value)
Me.Close()
End Sub
The messagebox shows the ID but it's not showing up in the formBrowseAttendance textbox even though there are not compile errors.
Please see attachment.
Can you tell me what I'm missing?
Thanks.
Truly,
Emad