Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Compact Framework / April 2006

Tip: Looking for answers? Try searching our database.

moving items within a ListBoxEx list

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Patino - 20 Apr 2006 16:47 GMT
Hello,

I need to move an item from a ListBoxEx to the top of the stack, how
can I do this programmatically?

I create the ListBoxEx by reading records sequencially. For each record
there is a lot of work to do to create a ListItemEx to finally add to
the ListBoxEx. Unfortunately, the records are not ordered, and when I
find a specific one, after I create a ListItemEx for it, I need this
one to be the first one on the ListBoxEx.

Any ideas how I can accomplish this?

Thanks in advance!
Alex Feinman [MVP] - 20 Apr 2006 20:24 GMT
You need to order them prior to adding to listbox. Add them to an arraylist,
sort it and then add

> Hello,
>
[quoted text clipped - 10 lines]
>
> Thanks in advance!

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.