Answers for "Sort ListBox numerically in C#"

C#
0

Sort ListBox numerically in C#

ArrayList Sorting = new ArrayList(); 

foreach (var o in listBox1.Items) {
    Sorting.Add(o);
} 

Sorting.Sort(); 

listBox1.Items.Clear();

foreach (var o in Sorting) {
    listBox1.Items.Add(o); 
}
Posted by: Guest on May-06-2022

Code answers related to "Sort ListBox numerically in C#"

C# Answers by Framework

Browse Popular Code Answers by Language