Click here to Skip to main content
15,910,980 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to clear all textboxes on a form with a button Pin
Jacob Dixon9-Mar-08 17:58
Jacob Dixon9-Mar-08 17:58 
GeneralRe: How to clear all textboxes on a form with a button Pin
Christian Graus9-Mar-08 18:01
protectorChristian Graus9-Mar-08 18:01 
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 
Hi All,

I've been trying various things for an hour now and can't crack this particular nut. I have this code that is throwing an enumeration exception:

string pathcategory = FileScore.OrderBy(input => input.Value).Last().Key;
foreach (KeyValuePair<string, int> kvp in FileScore)
{
    FileScore[kvp.Key] = 0;
}


I think I see the problem. The first line is setting the order to the Value and then the foreach is attempting to iterate over the dictionary but each execution of foreach is changing the values that the enumerator is using ... how do I reset the ordering back to the key??

Thanks,

Jammer

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

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 
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 

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.