Jump to content

View more

Image of the Day

The night is still, but the invasion brings chaos. #screenshotsaturday #hanako #indiegame #gameart #ue4 #samurai https://t.co/cgILXuokoS
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

listview

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
3 replies to this topic

#1 kalixxx   Members   

105
Like
0Likes
Like

Posted 12 November 2012 - 12:26 AM

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???

#2 Endurion   Members   

5320
Like
2Likes
Like

Posted 12 November 2012 - 01:52 AM

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>

#3 kalixxx   Members   

105
Like
0Likes
Like

Posted 12 November 2012 - 04:34 AM

im sry and you are right c#
i will try .tag and report back

#4 kalixxx   Members   

105
Like
0Likes
Like

Posted 12 November 2012 - 05:18 PM

works awesomely tnx




Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.