Results 1 to 2 of 2

Thread: TextBox entry AutoScrolls lstBox

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2003
    Posts
    124

    TextBox entry AutoScrolls lstBox

    I have a text box txtSearch

    I want the lstUsers goto the appropriate item as I enter the username into the txtSearch.

    I dont want to have to enter the whole user name

    just the first few chars.

    How do i go about doing this



    db

  2. #2

    Thread Starter
    Lively Member
    Join Date
    Jun 2003
    Posts
    124
    Dim strSearch As String

    strSearch = txtSearch.Text
    If lstUsers.FindString(strSearch) <> -1 Then lstUsers.SelectedItem = lstUsers.Items.Item(lstUsers.FindString(strSearch))

    there it is

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width