473,395 Members | 1,675 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,395 software developers and data experts.

Dictionary / Listbox

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;

--
One day the lies will crumble away of themselves and truth will triumph once
more.
Nov 26 '05 #1
1 2238
Hiiiiiii
"Microskills" <Mi*********@discussions.microsoft.com> wrote in message
news:32**********************************@microsof t.com...
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;

--
One day the lies will crumble away of themselves and truth will triumph once more.

Nov 26 '05 #2

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

Similar topics

1
by: none | last post by:
or is it just me? I am having a problem with using a dictionary as an attribute of a class. This happens in python 1.5.2 and 2.2.2 which I am accessing through pythonwin builds 150 and 148...
17
by: amber | last post by:
Hello. Can someone tell me what I may be doing wrong here? I'm using the code (lboxRP is a listbox): Dim newRPindex As Integer newRPindex = Me.lboxRP.FindString(RP)...
6
by: Chris Leuty | last post by:
I am populating a multiselect Listbox from a dataset, with the content of the listbox filled by one table, and the selections determined from another table. So far, I have been keeping the dataset...
1
by: john wright | last post by:
I have a dictionary oject I created and I want to bind a listbox to it. I am including the code for the dictionary object. Here is the error I am getting: "System.Exception: Complex...
3
by: Ali Chambers | last post by:
Hi, I have created a listbox called "dtlist1" on my VB.NET form. I call a procedure as follows: Private Sub openfile(flname As String) dtlist1.Items.Clear() etc..
3
by: Roland Rickborn | last post by:
Hi folks, I am relatively new to Python. Although I read a lot of howtos, introductions and wikis, I am still having trouble ;-) My querstion: As the subject says, I'd like to feed a...
4
by: uday1302 | last post by:
Hi All, Can anyone help me out regarding Dicitonary Generic Class using c#. Like I have 3 btns(add, edit and delete), text box , LisBox, Listview. If i add an item from Text it should be added...
2
by: uday1302 | last post by:
Hi, I have Listbox(lstgroups) and listview(lstItems). say items in lisbox as Groups and in listview as Items. Each Group should have list of items, when i add an new item to lstitems. it should...
1
by: sachin2 | last post by:
I am using 3 types of dictionaries. 1) Dictionary<string, string > d = new Dictionary<string, string>(); 2) Dictionary<string, List<string>> d = new Dictionary<string, List<string>>(); 3)...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.