Click here to Skip to main content
15,889,992 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello everyone,
How can I sort the List of Picturebox by name?

thanks in advance,
z3ngew
Posted
Updated 16-Jan-13 5:27am
v2

Take a look at this,

Sorting using C# Lists[^]
 
Share this answer
 
Comments
z3ngew 16-Jan-13 11:32am    
I want to sort a List<Picturebox> by name,
thanks in advance,
z3ngew
Hi,

Try this:
C#
List<picturebox> sortedList = pictureBoxList.OrderBy(p => p.Name).ToList();
</picturebox>

Hope this helps.
 
Share this answer
 
Comments
z3ngew 16-Jan-13 11:40am    
Good Job,
Many Thanks my freind,
z3ngew
Thomas Daniels 16-Jan-13 11:46am    
You're welcome!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900