• Advertisement
Sign in to follow this  

MSVC++.NET listbox

This topic is 4848 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm making a tool using .NET framework with win forms. I need to know how to extract the data from each item in the listbox and put it into an array of characters or a string object. So far I have discovered how to add to the list, remove from the list and so forth. But I don't know how to get the string data out and copy it to an array so I can save it to a file -a which I can load from another C++ program that uses Win32.

Share this post


Link to post
Share on other sites
Advertisement
In general, access the listview item's subitems via index.

theListBox.Items[nIndex0].SubItems[nIndex1]

Kuphryn

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement