\r\n\r\n
Go Back  Xtreme Visual Basic Talk > Visual Basic .NET (2002/2003/2005/2008, including Express editions) > .NET Interface and Graphics > Multiple listboxes working together


\r\n \r\n
 
 
Thread Tools Display Modes

\r\n\r\n\r\n
Sorry if there is a similar thread, but I didn\'t find any.
\r\n
\r\nI need some help with listboxes. Basically the program consist of 3 listboxes places side by side. In those I want to store data about music: Name, Artist and Genre, so they are written on the same horizontal line. Then I want 3 buttons to be able to sort the listboxes alphabetically. This seems pretty easy in theory thanks to the .sorted property, but if you think about it only one listbox will be sorted and the others wont "follow". I mean if I for example sort the Artist-listbox, the name and genre wont be on the same line as the artist. So what I want to do is make 3 listboxes which are going to "follow" each others order. If I sort one listbox alphabetically the others will get the same new order, so they still will be written on the same horizontal line. Sorry if I explain it bad.
\r\n
\r\nI know the "real" way to do it is not to use the .sorted property and instead make my own sorting function form scratch. But this solution is very time-consuming and I rather take the shortcut.
\r\n
\r\nThank you in advance.
\r\n//Ferion
\r\n \r\n\r\n
\r\n \r\n\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n
\r\n \r\n \r\n \r\n \r\n Reply With Quote\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n\r\n \r\n\r\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n \r\n \r\n \r\n \r\n\r\n\r\n\r\n\r\n'; pd[1394516] = '\r\n\r\n \r\n\r\n
\r\n
\r\n
\r\n\r\n
\r\n \r\n\r\n\r\n\r\n\r\n\r\n \r\n\r\n\r\n\r\n \r\n
\r\n
\r\n  \r\n #2  \r\n \r\n \r\n \r\n \r\n \r\n
\r\n\r\n
\r\n \r\n Old\r\n \r\n 06-18-2012, 10:05 AM\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n
Flyguy\'s Avatar\r\n\r\n
\r\n \r\n Flyguy\r\n Flyguy is offline\r\n\r\n\r\n
Prev Previous Post   Next Post Next
  #1  
Old 06-18-2012, 10:03 AM
ferion ferion is offline
Newcomer
 
Join Date: Jun 2012
Posts: 14
Default Multiple listboxes working together


Sorry if there is a similar thread, but I didn't find any.

I need some help with listboxes. Basically the program consist of 3 listboxes places side by side. In those I want to store data about music: Name, Artist and Genre, so they are written on the same horizontal line. Then I want 3 buttons to be able to sort the listboxes alphabetically. This seems pretty easy in theory thanks to the .sorted property, but if you think about it only one listbox will be sorted and the others wont "follow". I mean if I for example sort the Artist-listbox, the name and genre wont be on the same line as the artist. So what I want to do is make 3 listboxes which are going to "follow" each others order. If I sort one listbox alphabetically the others will get the same new order, so they still will be written on the same horizontal line. Sorry if I explain it bad.

I know the "real" way to do it is not to use the .sorted property and instead make my own sorting function form scratch. But this solution is very time-consuming and I rather take the shortcut.

Thank you in advance.
//Ferion
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->