Dear Fellows,
I'm writing an accounting application. In the form of accounts i used an other form (look-up form) to search and pass resulted data in the text box.
Private Sub DataGridView1_CellDoubleClick(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellDoubleClick
AccountsFrm.txtAccountTypeCode.Text = Me.DataGridView1.CurrentRow.Cells.Item(0).Value
AccountsFrm.txtAccountTypeCode.Focus()
Me.Close()
End Sub
it works fine but i want to use this look-up form through other forms like Trans form but it pass data to the accounts form.
please provide me solution to use it on multiple forms and pass data to the form it got focused.
I'm writing an accounting application. In the form of accounts i used an other form (look-up form) to search and pass resulted data in the text box.
Private Sub DataGridView1_CellDoubleClick(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellDoubleClick
AccountsFrm.txtAccountTypeCode.Text = Me.DataGridView1.CurrentRow.Cells.Item(0).Value
AccountsFrm.txtAccountTypeCode.Focus()
Me.Close()
End Sub
it works fine but i want to use this look-up form through other forms like Trans form but it pass data to the accounts form.
please provide me solution to use it on multiple forms and pass data to the form it got focused.