Click here to Skip to main content
15,914,371 members
Home / Discussions / C#
   

C#

 
QuestionImageMagick for .NET 2008 Pin
Member 462208924-Mar-09 10:34
Member 462208924-Mar-09 10:34 
AnswerRe: ImageMagick for .NET 2008 Pin
Yusuf24-Mar-09 12:11
Yusuf24-Mar-09 12:11 
GeneralRe: ImageMagick for .NET 2008 Pin
Member 462208927-Mar-09 5:04
Member 462208927-Mar-09 5:04 
QuestionWhitespace in Form Control Pin
shafiullah12324-Mar-09 10:05
shafiullah12324-Mar-09 10:05 
AnswerRe: Whitespace in Form Control Pin
tech60324-Mar-09 13:08
tech60324-Mar-09 13:08 
AnswerRe: Whitespace in Form Control Pin
shafiullah12325-Mar-09 9:31
shafiullah12325-Mar-09 9:31 
Questionms access Stored Procedure - I am getting an empty DataSet when running a stored query Pin
astroudjr24-Mar-09 9:06
astroudjr24-Mar-09 9:06 
AnswerRe: ms access Stored Procedure - I am getting an empty DataSet when running a stored query Pin
astroudjr24-Mar-09 9:43
astroudjr24-Mar-09 9:43 
QuestionCan't decide on the UI Pin
Ankit Rajpoot24-Mar-09 8:48
Ankit Rajpoot24-Mar-09 8:48 
AnswerRe: Can't decide on the UI Pin
Xmen Real 24-Mar-09 8:58
professional Xmen Real 24-Mar-09 8:58 
GeneralRe: Can't decide on the UI Pin
Ankit Rajpoot24-Mar-09 15:04
Ankit Rajpoot24-Mar-09 15:04 
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 

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.