JamesBowtell
Member
- Joined
- Feb 26, 2009
- Messages
- 16
- Programming Experience
- 3-5
Hey
i got two forms
form1 (frmUserDetails)
form2 (frmSearchForm)
when i click the search button in form1, form2 appears.
i get the information i want from form 2 and store it in a variable.
when i close form2 and form1 is active again i want this code to run automatically:
how would i get the above code to run when the focus is back on form1?
thanks
i got two forms
form1 (frmUserDetails)
form2 (frmSearchForm)
when i click the search button in form1, form2 appears.
i get the information i want from form 2 and store it in a variable.
when i close form2 and form1 is active again i want this code to run automatically:
VB.NET:
Me.userIDsearch = frmUserSearch.NuNameTB
Try
'TODO: This line of code loads data into the 'SoftwareLookupDataSet.tbl_software' table. You can move, or remove it, as needed.
Me.Tbl_softwareTableAdapter.Fill(Me.SoftwareLookupDataSet.tbl_software)
'TODO: This line of code loads data into the 'ITSoftwareLoansSDataSet.tbl_software_loan' table. You can move, or remove it, as needed.
Me.Tbl_software_loanTableAdapter.Fill(Me.ITSoftwareLoansSDataSet.tbl_software_loan)
'TODO: This line of code loads data into the 'ITSoftwareLoansSDataSet.tbl_user' table. You can move, or remove it, as needed.
Me.Tbl_userTableAdapter.FillByUserID(Me.ITSoftwareLoansSDataSet.tbl_user, Me.userIDsearch)
Label1.Text = frmUserSearch.NuNameTB
Catch ex As System.Exception
System.Windows.Forms.MessageBox.Show(ex.Message)
End Try
how would i get the above code to run when the focus is back on form1?
thanks