Hello, I'm .net newbie starting one project for fun. I'm using list box filled with some city names so user can pick one. Every city class has name and UID. How do I know which city user clicked on? Obviously, I can get text of selected item, run through city list and find one by name but that seems stupid.
Is there equivalent to MFC SetItemDataPtr type of thing or what is the most common way of doing it?