G
Guest
hi, this is the code i have to put the text ina combo box thats being show
into a text box
Private Sub cmbteams_SelectedIndexChanged(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles cmbteams.SelectedIndexChanged
If cmbteams.SelectedIndex <> -1 Then
Me.TextBox1.Text = Me.cmbteams.SelectedItem
End If
End Sub
then, if i try to call it later from a different form to see what the text
is, all it shwos is "TextBox1", heres how i call it
Private Sub lblaa5_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles lblaa5.Click
Me.lblaa5.Text = team.TextBox1.Text
End Sub
lblaa5 is a label on one of my forms, its text is what i want to be the same
as the other form(team)'s textbox to be when i click on the label
thanks
into a text box
Private Sub cmbteams_SelectedIndexChanged(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles cmbteams.SelectedIndexChanged
If cmbteams.SelectedIndex <> -1 Then
Me.TextBox1.Text = Me.cmbteams.SelectedItem
End If
End Sub
then, if i try to call it later from a different form to see what the text
is, all it shwos is "TextBox1", heres how i call it
Private Sub lblaa5_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles lblaa5.Click
Me.lblaa5.Text = team.TextBox1.Text
End Sub
lblaa5 is a label on one of my forms, its text is what i want to be the same
as the other form(team)'s textbox to be when i click on the label
thanks