Click here to Skip to main content
15,891,702 members
Home / Discussions / C#
   

C#

 
GeneralRe: Can't decide on the UI Pin
Xmen Real 24-Mar-09 15:10
professional Xmen Real 24-Mar-09 15:10 
QuestionUpdating Primary key Pin
BijayaSharma24-Mar-09 8:36
BijayaSharma24-Mar-09 8:36 
AnswerRe: Updating Primary key Pin
Xmen Real 24-Mar-09 8:42
professional Xmen Real 24-Mar-09 8:42 
AnswerRe: Updating Primary key Pin
jaypatel51225-Mar-09 6:34
jaypatel51225-Mar-09 6:34 
Questionauto-Completion with C# Pin
jbu2024-Mar-09 8:23
jbu2024-Mar-09 8:23 
AnswerRe: auto-Completion with C# Pin
Xmen Real 24-Mar-09 8:37
professional Xmen Real 24-Mar-09 8:37 
QuestionHelp on Dictionaries and the BackgroundWorker class. Pin
nike_arh24-Mar-09 8:09
nike_arh24-Mar-09 8:09 
AnswerRe: Help on Dictionaries and the BackgroundWorker class. Pin
MidwestLimey24-Mar-09 9:32
professionalMidwestLimey24-Mar-09 9:32 
nike_arh wrote:
and then compares them to a list of actual words. The problem is that it's too slow.


You'll need to manage any threads you generate, otherwise the process will remain alive.

nike_arh wrote:
The process of searching is done via a BackgroundWorker. If I close the application while the worker is searching will it dispose of the separate thread, or I have to stop it manually???


Are you simply running a linear search into a list of thousands of words? If so, I'm not surprised. Thousands of byte-wise comparisons will take a fair while when conducted hundreds of times. If the data is sorted then try running a binary search based on the first few letters. If not try sorting it and building an index into your list.

nike_arh wrote:
I saw a Dictionary class included int the .NET framework but can I use it for this purpose?


Dictionary's are handy for associating two lists of information together, namely a key (which must be unique) and a value corresponding to that key. I use them for lookup information all the time such as translating a numeric value into a displayable string.

10110011001111101010101000001000001101001010001010100000100000101000001000111100010110001011001011

AnswerRe: Help on Dictionaries and the BackgroundWorker class. Pin
Luc Pattyn24-Mar-09 15:36
sitebuilderLuc Pattyn24-Mar-09 15:36 
QuestionPrint Format in c#,winforms Pin
avvaru.murali24-Mar-09 7:28
avvaru.murali24-Mar-09 7:28 
QuestionTapi 3.0 events Pin
daniel kuperberg24-Mar-09 6:50
daniel kuperberg24-Mar-09 6:50 
QuestionGet label text value from ID in C# Pin
asipo24-Mar-09 6:36
asipo24-Mar-09 6:36 
AnswerRe: Get label text value from ID in C# Pin
moon_stick24-Mar-09 7:25
moon_stick24-Mar-09 7:25 
AnswerRe: Get label text value from ID in C# Pin
Xmen Real 24-Mar-09 8:36
professional Xmen Real 24-Mar-09 8:36 
GeneralRe: Get label text value from ID in C# Pin
asipo24-Mar-09 9:22
asipo24-Mar-09 9:22 
QuestionHow to geht the Solution Items VSX Pin
Dromar24-Mar-09 6:32
Dromar24-Mar-09 6:32 
QuestionLooking for a TCP/IP commercial library Pin
dbambirck24-Mar-09 6:31
dbambirck24-Mar-09 6:31 
AnswerRe: Looking for a TCP/IP commercial library Pin
harold aptroot24-Mar-09 6:45
harold aptroot24-Mar-09 6:45 
GeneralRe: Looking for a TCP/IP commercial library Pin
dbambirck25-Mar-09 4:27
dbambirck25-Mar-09 4:27 
GeneralRe: Looking for a TCP/IP commercial library Pin
harold aptroot25-Mar-09 5:15
harold aptroot25-Mar-09 5:15 
GeneralRe: Looking for a TCP/IP commercial library Pin
dbambirck25-Mar-09 6:11
dbambirck25-Mar-09 6:11 
GeneralRe: Looking for a TCP/IP commercial library Pin
harold aptroot25-Mar-09 6:32
harold aptroot25-Mar-09 6:32 
QuestionRe: Looking for a TCP/IP commercial library Pin
CPallini24-Mar-09 7:58
mveCPallini24-Mar-09 7:58 
QuestionDynamic HTML to PDF Pin
ika224-Mar-09 6:19
ika224-Mar-09 6:19 
QuestionQuestion about HTML tag C# Pin
YiXiang_8924-Mar-09 5:26
YiXiang_8924-Mar-09 5:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.