Multiple listboxes working together
Multiple listboxes working together
Multiple listboxes working together
Multiple listboxes working together
Multiple listboxes working together
Multiple listboxes working together Multiple listboxes working together Multiple listboxes working together Multiple listboxes working together Multiple listboxes working together Multiple listboxes working together Multiple listboxes working together Multiple listboxes working together
Multiple listboxes working together Multiple listboxes working together
Multiple listboxes working together
Go Back  Xtreme Visual Basic Talk > > > Multiple listboxes working together


Reply
 
Thread Tools Display Modes
  #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
  #2  
Old 06-18-2012, 10:05 AM
Flyguy's Avatar
FlyguyMultiple listboxes working together Flyguy is offline
Lost Soul

Super Moderator
* Guru *
 
Join Date: May 2001
Location: Vorlon
Posts: 19,160
Default

Did you consider to use a Grid or ListView control instead of multiple Listboxes?
Reply With Quote
  #3  
Old 06-18-2012, 10:19 AM
ferion ferion is offline
Newcomer
 
Join Date: Jun 2012
Posts: 14
Default

Didn't even know there were such things. Thank you!
Reply With Quote
  #4  
Old 06-19-2012, 09:01 AM
ferion ferion is offline
Newcomer
 
Join Date: Jun 2012
Posts: 14
Default

--

Last edited by ferion; 06-19-2012 at 09:05 AM. Reason: I found the answer just after posting the reply
Reply With Quote
Reply


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
Multiple listboxes working together
Multiple listboxes working together
Multiple listboxes working together Multiple listboxes working together
Multiple listboxes working together
Multiple listboxes working together
Multiple listboxes working together Multiple listboxes working together Multiple listboxes working together Multiple listboxes working together Multiple listboxes working together Multiple listboxes working together Multiple listboxes working together
Multiple listboxes working together
Multiple listboxes working together
 
Multiple listboxes working together
Multiple listboxes working together
 
-->