Click here to Skip to main content
15,924,036 members
Home / Discussions / C#
   

C#

 
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 
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 
I've just been testing this again and I've come to the conclusion that using a Dictionary as I am is a no go option ... no matter what I try there is an exception thrown.

foreach (KeyValuePair<string, int=""> kvp in FileScore)
{
    if (FileScore[kvp.Key] > highestscore)
    {
        pathcategory = kvp.Key;
        highestscore = kvp.Value;
    }
    FileScore[kvp.Value] = 0;
}
return pathcategory;</string,>


Even though the line that 'resets' the Value to zero isn't changing the Key the foreach throws an exception saying that the collection has changed. I think i'm going to use a normal generic list in its place.

Cheers,

Jammer

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

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 
GeneralRe: Help with printDocument and printPreviewControl Pin
Christian Graus9-Mar-08 11:04
protectorChristian Graus9-Mar-08 11:04 
GeneralRe: Help with printDocument and printPreviewControl Pin
Jacob Dixon9-Mar-08 11:21
Jacob Dixon9-Mar-08 11:21 
GeneralRe: Help with printDocument and printPreviewControl Pin
Christian Graus9-Mar-08 11:43
protectorChristian Graus9-Mar-08 11:43 

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.