Results 1 to 3 of 3

Thread: How to filter text in a listbox when typing a text box..

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 2000
    Location
    India, Chennai
    Posts
    121

    Question How to filter text in a listbox when typing a text box..

    Hi Guys,
    I need to know how to filter text in a list box, when I type in a Text Box. (In simple how to mimic the Search/Jump to Song Window in Winamp). I used the SendMessage API. But I can't filter or find more than result in a list box. Please help me ! How should I do this, what are the codings If any ? Thnx in advance.
    Stop Piracy. Stop Using Microsoft.

  2. #2
    Hyperactive Member phrozeman's Avatar
    Join Date
    Apr 2000
    Location
    Netherlands
    Posts
    442
    U mean, when u press 'E' in the textbox the listbox will jump to 'Eminem', and when u hit 'E' again it will jump to 'Eric Clapton'?

    Or isn't that where u are looking for?
    There's a certain mystique when I speak, that you notice that it's sorta unique, cause you know it's me

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Dec 2000
    Location
    India, Chennai
    Posts
    121

    Extactly...

    Hi Phrozeman,
    Exactly you're right. But consider this situation. Suppose there are 100 entires. Consider There are entries named Austria, Australia, Alabama, Anaconda, America, Africa, Bangkok, Bangladesh, Berlin, Bermuda, etc., When you type 'A' in the Text Box, Only the entries starting with 'A' namely Austria, Australia, Alabama, Anaconda, America & Africa should be listed in the List box. Others namely Bangkok, Bangladesh, Berlin, Bermuda, etc., should be removed. Then you still type 'u' only the corresponding matching entries should be existing. Your code will find the match for the string, but I want to know how the remove/Filter the things from the List Box. Anyway thnx for your reply.
    Stop Piracy. Stop Using Microsoft.

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