Hi,
I am trying to populate information selected from a combobox on frmTradeListing to a textbox on frmTradeSummary.
When I select the combobox it closes frmTradeListing but then the text doesn't transfer to the textbox on frmTradeSummary.
Here is a sample of the code:
Private Sub cboMyCombo_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cboMyCombo.SelectedIndexChanged
Dim frmMain as New frmTradeSummary
With Me
frmMain.txtTrades.Text = .cboMyCombo.Text
End With
End Sub
Please help.
I am trying to populate information selected from a combobox on frmTradeListing to a textbox on frmTradeSummary.
When I select the combobox it closes frmTradeListing but then the text doesn't transfer to the textbox on frmTradeSummary.
Here is a sample of the code:
Private Sub cboMyCombo_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cboMyCombo.SelectedIndexChanged
Dim frmMain as New frmTradeSummary
With Me
frmMain.txtTrades.Text = .cboMyCombo.Text
End With
End Sub
Please help.