title: How to change selected item text in list box at run time?
body: <p>I tried with code like this:</p>
  
  <pre><code>Private Sub TextBox1_Leave(sender As Object, e As EventArgs) Handles MyBase.Leave
    ' This way is not working
    ListBox1.SelectedItem = TextBox1.Text
    ' This is not working too
    ListBox1.Items(ListBox1.SelectedIndex) = TextBox1.Text
  End Sub
  </code></pre>
  
  <p>The form is looked like this:</p>
  
  <p><img src="https://i.stack.imgur.com/i53AU.jpg" alt="enter image description here"></p>
  
  <p>I need to change that list text while user typing in the text box. Is it possible to do that at run time?</p>