this one, hopes got it![]()
VB Code:
Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click If ListBox1.Enabled Then TextBox1.Text = ListBox1.SelectedItem ElseIf ListBox2.Enabled Then TextBox1.Text = ListBox2.SelectedItem End If ListBox1.Enabled = True ListBox2.Enabled = True ListBox1.SelectedIndex = -1 ListBox2.SelectedIndex = -1 End Sub![]()




Reply With Quote