Click here to Skip to main content
15,890,557 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi... I'm new in the world of c++, im creating a c++ CLI form with a listview on which is populated at runtime in the "Load" event... now i hav come so far as to make the list able to show a message box when i double click the listview item...but heres my question....

How do i get the message box to display the selected items text and subitems...
like

C++
String^ MystringtoUSE;
MystringtoUSE = "Item Clicked: " + "(here's the first item in the list)"  + " - Total Files: " + "(now the subitem text)");

MessageBox::Show (MystringtoUSE,"Double Clicked");


i dont know what to do...

can someone please help me....i need to fix this....teach me for the future...

What I have tried:

*searching online but they really help.
*MyList->GetItemAt(0,0) //for the items
MyList->GetItemAt(0, 1) for subitem
*MyList->GetItemAt(0,0)->text
Posted
Updated 11-Aug-16 0:44am

1 solution

 
Share this answer
 
Comments
ricksmitchina 12-Aug-16 0:14am    
for some reason it doesnt work in my code....is there anything else i can try?
Richard MacCutchan 12-Aug-16 4:08am    
Yes, use your debugger to find out what is not working.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900