Hello, on a form i have a combobox bound to a database-table.
On another form i have a code which makes a ms-word document.
What i want is that the second form selects the first row from the combobox-index and displays it in the word document.
I have this working, but it only works when i visit the first form first, then go to the second form and run the code to display the ms-word document.
It doesn't work when i run the second form first???????
Here is some code I use:
first-form code (frminstellingen):
CODE
Private Sub FrmInstellingen_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'TODO: This line of code loads data into the 'DocRegData2DataSet.Gebruikers' table. You can move, or remove it, as needed.
Me.GebruikersTableAdapter.Fill(Me.DocRegData2DataSet.Gebruikers)
Me.GebruikersnaamComboBox.SelectedIndex = 0
End Sub
second-form code:
CODE
orange.Text = "E-mail:" & ControlChars.Tab & My.Forms.FrmInstellingen.GebruikersnaamComboBox.Text
It seems it only loads the data in the combobox on the first form when i visit the form. But when i enter the same code as under frm_load event in the second form it still doesn't work?!
Strange he??
Any help?!