ListBox . SetItemData ???

  • Thread starter Thread starter Daniel P.
  • Start date Start date
D

Daniel P.

Is there anything similar to what MFC has, like CListBox::SetItemData ?

Thanks!
 
In .Net Listbox, you can throw in any object, not just text. If that's the
case, you can create your own class that has an extra "Tag" property and add
objects of that class to the ListBox. Just override the ToString method to
control what you want to display in the listbox.

-vJ
 
Cool! It worked! Thanks!

Vijaye Raji said:
In .Net Listbox, you can throw in any object, not just text. If that's the
case, you can create your own class that has an extra "Tag" property and add
objects of that class to the ListBox. Just override the ToString method to
control what you want to display in the listbox.

-vJ
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top