473,396 Members | 1,921 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Listbox / Database

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;

Nov 26 '05 #1
1 2257
Microskills,

Try the combobox (for windowforms or the dropdowlist for webforms) and than
the autocomplete.

There are endless methods on internet as sample for that.
In the combobox of version 2005 there is a autocomplete methode integrated.

http://msdn2.microsoft.com/en-us/lib...pletemode.aspx

I hope this helps,
Cor

"Microskills" <no*************@coldmail.com> schreef in bericht
news:Xn********************************@207.46.248 .16...
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;

Nov 26 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: f_salazar | last post by:
English Version !! Hi !! I have a page with a Form, inside the form I have listbox with 'X' elements. Wend I submit the page, an ASP process inside the page have to read those elements and...
1
by: Josema | last post by:
Hi, My problem is the next one (in a windows application): - I have a class derived from collectionbase to fill with persons object (id, name) from database. - I have a ListBox wich datasource...
4
by: Moe Sizlak | last post by:
Hi There, I am trying to return the value of a listbox control that is included as a user control, I can return the name of the control but I can't access the integer value of the selected item,...
3
by: Stimp | last post by:
I have a listbox of values that I populate from a database. I want the user to be able to re-order the list (by first selecting an item and then clicking 'up' or 'down' buttons) and then save...
0
by: deepak | last post by:
Hi all, i m transefering values from one listbox to another listbox using javascript(both are html controls), the first listbox is populating with database at page_load time and the second listbox...
5
by: John Veldthuis | last post by:
My code works perfectly 100% when adding items to my ArrayList and updating the listbox. Works perfectly when deleting an item in the ArrayList when it is not the last entry but if it is the last...
6
by: Mark | last post by:
Hello. I have a listbox whose rowsource is set to a saved query (call it "qry_customer_list.") When I add customers to my database, I call the listbox Requery method so that the listbox will...
1
by: lance2001 | last post by:
Hi, After viewing the entire Visual Basic 2005 Express Edition for Beginners video series, I have begun building a database driven application that will make use of listbox1 (multi-select)...
3
by: Jay Ruyle | last post by:
I'm trying to figure out a way to list several items in a listbox and let the user select any number of items in the listbox. I have tried to code in the items as bitwise items but all it stores...
1
by: Sunray | last post by:
I have a form called the sales form and i have 2 sets of listboxes So what happens is. i add items form the bottom set of list boxes which are bound to a data base to the top set of list boxes which...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.