this one, hopes got it
VB Code:
  1. Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
  2.         If ListBox1.Enabled Then
  3.             TextBox1.Text = ListBox1.SelectedItem
  4.         ElseIf ListBox2.Enabled Then
  5.             TextBox1.Text = ListBox2.SelectedItem
  6.         End If
  7.         ListBox1.Enabled = True
  8.         ListBox2.Enabled = True
  9.         ListBox1.SelectedIndex = -1
  10.         ListBox2.SelectedIndex = -1
  11.     End Sub