I have this situation:
Dictionary<Int32, userInfo> users = new Dictionary<Int32, userInfo>();
Where the Int32 is the user id and userInfo contains the name and other details. I want to display a list of names at the form, and allow the person using the program to double click on one to open a window (similar to what happens in MSN messenger). When a user's name is double clicked I need to know the id, so I can do
OpenChatWindow(Int32 id, string name);
I am really not sure how to do it, I am using winforms. I thought of ListBox, but again, I'm not sure how. what should I do?
PS. userInfo.name is unique in the Dictionary, but I really don't want to start looking for it.