Find a string in a listbox

D

Dan Avni

Using the compact framework, i want to display a listbox with a few
thousand items. i want to put a textbox above the listbox to allow the
user to start entering the text of the item he is searching for in the
list and when the textbox changes i want the list to jump to the first
item that starts with whatever the user wrote.

i have seen the findstring method on the listbox on the normal VB.NET
project but how can i do something similar in the CF version?

Thanks
 
C

Chris Tacke, eMVP

I'm going to go on record as saying you need to rethink your UI. A few
thousand items in a list is a bad idea, no matter how you go about it.

-Chris
 
D

Dan Avni

Chris Hi,

thx for the quick reply. i am aware of the UI problem and this UI is
only one of a few my application will have to offer (there are some
applications out there now that do the same as my app and have only
this UI).

anyway this is exactly why i want to allow the user to search for the
item in the list. i do not expect him to find the item on the list
since the list is endless.

i still need some kind of a solution for this (if any).

thx
Dan Avni
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top