Add object to listview

  • Thread starter Thread starter XiScO
  • Start date Start date
X

XiScO

Hi!
sometime ago, a friend show me that in BC++ you could add an objet to each
element of a listview. Now I wnat to know if it is possible to do this on
VB.net 2005.
I've a collection of objects and show some of their properties on the
listview, if I could attach the object to each file of the listview it'll
be easier.
Thnaks.
bye
 
Thanks for the reply. I don't understand exactly what you say (english is
not my native language).
I want a listitem which conaints some string and an object (not shown).
Particulary I add computers to the listview, so i show computer name, ip
and mac. I create an object with this data, wich has public methods to make
ping, wakeonlan, etc.
So I want the object as a member of the the listview so when a click is done
in one listview element I call the objet.method.
Is clear what I want to do?
Thanks again.
 
Xisco,

Simple than, no that is impossible,

Cor

XiScO said:
Thanks for the reply. I don't understand exactly what you say (english is
not my native language).
I want a listitem which conaints some string and an object (not shown).
Particulary I add computers to the listview, so i show computer name, ip
and mac. I create an object with this data, wich has public methods to
make
ping, wakeonlan, etc.
So I want the object as a member of the the listview so when a click is
done
in one listview element I call the objet.method.
Is clear what I want to do?
Thanks again.
 
You can use the ListViewItem.Tag property to store private data that should
be associated with a particular item

/claes
 
Back
Top