Amber,
* "=?Utf-8?B?QW1iZXI=?=" <an*******@discussions.microsoft.com> scripsit:
Yes, I figured that, but I'm looking for specific syntax to force a listbox.selecteditem to equal a texbox.
\\\
Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged
Dim i As Integer = Me.ListBox1.FindString(Me.TextBox1.Text)
If i = ListBox.NoMatches Then
Me.ListBox1.SelectedIndex = -1
Else
Me.ListBox1.SelectedIndex = i
End If
End Sub
///
--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet/>