Listbox / Database
- From: Microskills <noemailprovided@xxxxxxxxxxxx>
- Date: Fri, 25 Nov 2005 18:02:38 -0800
I am a new VB.NET programmer. I am writing a dictionary program with a Dictionary file has over
60000 entries.
When user starts typing a word in the searchbox, I want to show words that start with the text in the
search box. For example if user enters GA lstbox will show
GAB
GABARDINE
GABLE
...
...
...
End if he types GAD listbox will show
GAD
GAD ABOUT
GADFLY
....
....
....
I also provide user ability to use arrows so that he can move in the listbox up and down and go through
every word in the dictionary. That means 60000 words.
First I tried to load 60000 words into listbox but it takes too long for program to start [6-8 secs] when
you compare it commercial products like lingvosoft which provides 400,000 words and loads in less
than 3 seconds. This method also consumes lots of memory where linvosoft's product consumes
only 3-4 megs.
[Another good example is Microsoft Encarta where encyclopedia entries in a listbox change
dynamically as user types in the seachbox. User also can navigate in the listbox with more than
80,000 items]
How can I achive this?
Another thing is that I dont want to use textfile or Access DB for entries. Is there any other format that I
can use to get data faster than above mentioned file types?
Note: Link and book suggestions are also welcomed.
Sincerely;
.
- Follow-Ups:
- Re: Listbox / Database
- From: Cor Ligthert [MVP]
- Re: Listbox / Database
- Prev by Date: Re: Cultue/ Globalization /Region
- Next by Date: Re: ESC and validation - SOLVED
- Previous by thread: Nwwbie array question
- Next by thread: Re: Listbox / Database
- Index(es):
Relevant Pages
|