Click here to Skip to main content
12,825,515 members (35,477 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C#
Hello everyone,
How can I sort the List of Picturebox by name?

thanks in advance,
z3ngew
Posted 16-Jan-13 6:25am
z3ngew840
Updated 16-Jan-13 6:27am
v2
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

Take a look at this,

Sorting using C# Lists[^]
  Permalink  
Comments
z3ngew 16-Jan-13 11:32am
   
I want to sort a List<Picturebox> by name,
thanks in advance,
z3ngew
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

Hi,

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

Hope this helps.
  Permalink  
Comments
z3ngew 16-Jan-13 11:40am
   
Good Job,
Many Thanks my freind,
z3ngew
ProgramFOX 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)

    Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.170308.1 | Last Updated 16 Jan 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100