Click here to Skip to main content
16,010,022 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to clear all textboxes on a form with a button Pin
Jacob Dixon9-Mar-08 18:08
Jacob Dixon9-Mar-08 18:08 
GeneralRe: How to clear all textboxes on a form with a button Pin
Jacob Dixon9-Mar-08 18:10
Jacob Dixon9-Mar-08 18:10 
GeneralRe: How to clear all textboxes on a form with a button Pin
Ravenet9-Mar-08 18:13
Ravenet9-Mar-08 18:13 
QuestionTimer Pin
nelsonpaixao9-Mar-08 15:56
nelsonpaixao9-Mar-08 15:56 
GeneralRe: Timer Pin
Ravenet9-Mar-08 16:33
Ravenet9-Mar-08 16:33 
QuestionDictionary Reset? Pin
Jammer9-Mar-08 13:43
Jammer9-Mar-08 13:43 
GeneralRe: Dictionary Reset? Pin
Christian Graus9-Mar-08 15:01
protectorChristian Graus9-Mar-08 15:01 
GeneralRe: Dictionary Reset? Pin
Jammer9-Mar-08 15:27
Jammer9-Mar-08 15:27 
Hi Christian,

Not sure that will work in this instance as its coded now. The dictionary is storing a list of possible matches to words in a string. Depending on the match i'm incrementing the value held against a key with potentially many matches to different words in the string, so I end up with a dictionary that might look like:

string1, 10
string2, 0
string3, 30
string4, 50
string5, 10

The line that sorts the dictionary is looking for and finding string4 and i'm passing that key back. Then I want to set all the values back to 0.

Would it be wiser to remove the sorting line and then just iterate over the dictionary holding the highest value in the key/value pair? Sorry if this is what you mean, just wanted to clarify.

Hope your well.

Jammer

Going where everyone here has gone before! Smile | :)

GeneralRe: Dictionary Reset? Pin
Christian Graus9-Mar-08 15:52
protectorChristian Graus9-Mar-08 15:52 
GeneralRe: Dictionary Reset? Pin
Jammer10-Mar-08 6:14
Jammer10-Mar-08 6:14 
GeneralRe: Dictionary Reset? Pin
Jammer10-Mar-08 9:40
Jammer10-Mar-08 9:40 
GeneralStrange XmlDocument.Save() behaviour when using openfiledialog in Windows Forms Pin
turkel9-Mar-08 12:22
turkel9-Mar-08 12:22 
GeneralRe: Strange XmlDocument.Save() behaviour when using openfiledialog in Windows Forms Pin
Christian Graus9-Mar-08 12:34
protectorChristian Graus9-Mar-08 12:34 
GeneralRe: Strange XmlDocument.Save() behaviour when using openfiledialog in Windows Forms Pin
Lutosław9-Mar-08 12:39
Lutosław9-Mar-08 12:39 
GeneralRe: Strange XmlDocument.Save() behaviour when using openfiledialog in Windows Forms Pin
turkel9-Mar-08 13:57
turkel9-Mar-08 13:57 
GeneralNTDVM.EXE stopped working while using gacutil.exe Pin
Cherkez9-Mar-08 11:30
Cherkez9-Mar-08 11:30 
QuestionHow to create Choose date dialog. .. .. .. Pin
Yanshof9-Mar-08 11:22
Yanshof9-Mar-08 11:22 
AnswerRe: How to create Choose date dialog. .. .. .. Pin
buchstaben9-Mar-08 11:32
buchstaben9-Mar-08 11:32 
QuestionC# code SQL connection Pin
Knowledgestudent9-Mar-08 11:17
Knowledgestudent9-Mar-08 11:17 
GeneralRe: C# code SQL connection Pin
Christian Graus9-Mar-08 11:38
protectorChristian Graus9-Mar-08 11:38 
GeneralRe: C# code SQL connection Pin
Ravenet9-Mar-08 16:35
Ravenet9-Mar-08 16:35 
QuestionSimple way to round a decimal? Pin
Joplinazz9-Mar-08 10:23
Joplinazz9-Mar-08 10:23 
AnswerRe: Simple way to round a decimal? Pin
Christian Graus9-Mar-08 10:58
protectorChristian Graus9-Mar-08 10:58 
GeneralHelp with printDocument and printPreviewControl Pin
Jacob Dixon9-Mar-08 8:09
Jacob Dixon9-Mar-08 8:09 
GeneralRe: Help with printDocument and printPreviewControl Pin
Jacob Dixon9-Mar-08 9:28
Jacob Dixon9-Mar-08 9:28 

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.