Hi! I load names and values into a listbox. I sorted the listbox. Is there anyway to make the highest value to appear first? I should work as a highscore board. Only the 10 best scores should be displayed. Any suggestions? namn is name and procent is the score: while ((line = sr.ReadLine()) != null) { for (int i = 0; i < 1; i++) { varden = line.Split(' '); Procent = Convert.ToDouble(varden[0]); Namn = varden[1]; listBox1.Items.Add(Procent + " " + Namn); listBox1.Sorted = true; } }
Newbie untill I die! :-)