Hi Selva,
Soulds like you do not like the listbox builtin AutoScroll behavior, if so
how about the following workaround:
Dim searchChars As String
...
Private Sub ListBox1_KeyUp(ByVal sender As System.Object, ByVal e As
System.Windows.Forms.KeyEventArgs) Handles ListBox1.KeyUp
searchChars += Chr(e.KeyValue)
ListBox1.SelectedIndex = ListBox1.FindString(searchChars)
End Sub
Private Sub ListBox1_KeyPress(ByVal sender As System.Object, ByVal e As
System.Windows.Forms.KeyPressEventArgs) Handles ListBox1.KeyPress
e.Handled = True
End Sub
By the way, you may need to use a timer to clean the searchChars string
once per second(or in a more duration time).
Wish this help!
Best regards,
Gary Chang
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.