Skip to main content
GameDev.net gamedev.net
🔒 Locked

listview

Started by kalixxx Nov 12, 2012 at 6:26 AM 2 replies 1.5k views
Original Post
kalixxx
kalixxx
ih im using vs10 and i found this listview control.
found how to use most of its feturs (not sure its the best for what i need yet)

but i cant find how to get the item i clickd on!
the listview points to a dictionary. now how do i get a ref bake from what i selected to the dictionary???
Endurion
Endurion
Unfortunately you don't mention the language and/or framework, so I assume Windows.Forms with C#?

You find the selected items in ListView.SelectedItems.

If you want to store a reference to your own objects in a ListView you can use the .Tag member of the ListViewItem.
Fruny: Ftagn! Ia! Ia! std::time_put_byname! Mglui naflftagn std::codecvt eY'ha-nthlei!,char,mbstate_t>
kalixxx
kalixxx
im sry and you are right c#
i will try .tag and report back
kalixxx
kalixxx
works awesomely tnx

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.