Click here to Skip to main content
15,896,726 members
Home / Discussions / C#
   

C#

 
GeneralRe: About this 3D graph in C# Pin
Alan Balkany28-Nov-11 6:01
Alan Balkany28-Nov-11 6:01 
GeneralRe: About this 3D graph in C# Pin
derek091928-Nov-11 13:37
derek091928-Nov-11 13:37 
Questionconvert IEnumerable to Datatable Pin
jojoba201127-Nov-11 0:11
jojoba201127-Nov-11 0:11 
QuestionMatch Two List Box By Sorting ... Pin
nassimnastaran26-Nov-11 7:13
nassimnastaran26-Nov-11 7:13 
AnswerRe: Match Two List Box By Sorting ... Pin
Not Active26-Nov-11 8:05
mentorNot Active26-Nov-11 8:05 
AnswerRe: Match Two List Box By Sorting ... Pin
Luc Pattyn26-Nov-11 8:14
sitebuilderLuc Pattyn26-Nov-11 8:14 
GeneralRe: Match Two List Box By Sorting ... Pin
nassimnastaran26-Nov-11 8:42
nassimnastaran26-Nov-11 8:42 
AnswerRe: Match Two List Box By Sorting ... Pin
Luc Pattyn26-Nov-11 9:53
sitebuilderLuc Pattyn26-Nov-11 9:53 
If I understand you correctly (you are still only spending one short sentence to "explain" things!), I think you're best approach would be:

1. to have a class City with properties for Name, SomeNumber, and maybe more.
2. have one, not two, collections of such City instances; the collection lives outside any ListBox (as the cities do). A List<City> would do fine as collection here.
3. sort that collection any way you choose. My article explains how.
4. have a ListBox that shows the SomeNumber property of said collection. Databinding could do that for you (set DataSource and DisplayMember, and that is why City needs properties).
5. have another ListBox that shows the Name property of said collection. Databinding again.

Smile | :)
Luc Pattyn [My Articles] Nil Volentibus Arduum

GeneralRe: Match Two List Box By Sorting ... Pin
nassimnastaran26-Nov-11 10:22
nassimnastaran26-Nov-11 10:22 
GeneralRe: Match Two List Box By Sorting ... Pin
Luc Pattyn26-Nov-11 10:34
sitebuilderLuc Pattyn26-Nov-11 10:34 
GeneralRe: Match Two List Box By Sorting ... Pin
nassimnastaran26-Nov-11 10:43
nassimnastaran26-Nov-11 10:43 
AnswerRe: Match Two List Box By Sorting ... Pin
BillWoodruff26-Nov-11 19:55
professionalBillWoodruff26-Nov-11 19:55 
AnswerRe: Match Two List Box By Sorting ... Pin
DaveyM6926-Nov-11 22:48
professionalDaveyM6926-Nov-11 22:48 
GeneralRe: Match Two List Box By Sorting ... Pin
nassimnastaran27-Nov-11 7:59
nassimnastaran27-Nov-11 7:59 
Questionthread resume with out using sleep method Pin
somasekhara77726-Nov-11 6:11
somasekhara77726-Nov-11 6:11 
AnswerRe: thread resume with out using sleep method Pin
Mark Salsbery26-Nov-11 6:28
Mark Salsbery26-Nov-11 6:28 
AnswerRe: thread resume with out using sleep method Pin
Luc Pattyn26-Nov-11 6:30
sitebuilderLuc Pattyn26-Nov-11 6:30 
QuestionscrollBars Pin
FM726-Nov-11 5:25
FM726-Nov-11 5:25 
AnswerRe: scrollBars Pin
Luc Pattyn26-Nov-11 5:33
sitebuilderLuc Pattyn26-Nov-11 5:33 
GeneralRe: scrollBars Pin
FM726-Nov-11 6:07
FM726-Nov-11 6:07 
GeneralRe: scrollBars Pin
BillWoodruff26-Nov-11 18:52
professionalBillWoodruff26-Nov-11 18:52 
GeneralRe: scrollBars Pin
Luc Pattyn27-Nov-11 1:04
sitebuilderLuc Pattyn27-Nov-11 1:04 
AnswerRe: scrollBars Pin
Jitendra Parida - Jeetu30-Nov-11 19:01
Jitendra Parida - Jeetu30-Nov-11 19:01 
QuestionOriginal datarow value. Pin
paper6726-Nov-11 5:11
paper6726-Nov-11 5:11 
QuestionAutomation InternetExplorer, i am getting crazy! Pin
Laaky25-Nov-11 23:03
Laaky25-Nov-11 23:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.