How should I associate a ListBox item with an item in a list of mine?

Posted by Siracuse on Stack Overflow See other posts from Stack Overflow or by Siracuse
Published on 2010-04-22T05:59:48Z Indexed on 2010/04/22 6:03 UTC
Read the original article Hit count: 250

Filed under:
|
|

I have a listbox which has all the names for a list of "Gesture" objects I have.

I want to make it so if I double click on a ListBox item I can then do something with its associated Gesture instance. What is the best way in C# to associate a ListBox item with an instance of a class of mine?

© Stack Overflow or respective owner

Related posts about c#

Related posts about listbox