I have one form where the user selects his name from a Listbox and enters his password. On clicking a button I open the next Form and there are some textfields filled from the database, with his Name and highscore-points. I need to have the connection to the database to be able to update his points afterwards. Now how can I pass the selected Index of the first form to the second?
Up to now I have the following code (in frm1):
Dim frm2 As New frm2()
frm2.LoadDataSet()
frm2.BindingContext(objBenutzerDaten, "Benutzer"
.EndCurrentEdit()
frm2.BindingContext(objBenutzerDaten, "Benutzer"
.Position = Me.ListBox1.SelectedIndex
Something must be wrong with that, frm2 opens but goes to the first record. Anybody got an idea?
Up to now I have the following code (in frm1):
Dim frm2 As New frm2()
frm2.LoadDataSet()
frm2.BindingContext(objBenutzerDaten, "Benutzer"
frm2.BindingContext(objBenutzerDaten, "Benutzer"
Something must be wrong with that, frm2 opens but goes to the first record. Anybody got an idea?