listview looping
Please support our C# advertiser: DiscountASP.NET – 3 Months Free on C# Web Hosting
![]() |
Sup ladies and gentlemen, please help me, i need to loop through the listbox, now here's what i have
Now obviously those values should not be [0] and [1] because i am looping , but can anyone give me any idea what to put in there ???
Thank you in advance
CvZ
foreach (ListViewItem ListItem in listView_Replacement.Items)
{
// finding the string in the current item rows
string m_findText = listView_Replacement.Items[0].Text;
string m_replaceText = listView_Replacement.Items[0].SubItems[1].Text;
string m_Messagetext = txtMessage.Text;
string m_MessageTextNew = txtMessage.Text.Replace("" + m_findText + "", "" + m_replaceText + "");
txtMessage.Text = m_MessageTextNew;
txtMessage.Refresh();
}
Now obviously those values should not be [0] and [1] because i am looping , but can anyone give me any idea what to put in there ???
Thank you in advance
CvZ
Delphi & C# programmer deluxe...
![]() |
Similar Threads
Other Threads in the C# Forum
- Winsock and looping issues unsure how to resolve (Visual Basic 4 / 5 / 6)
Other Threads in the C# Forum
- Previous Thread: CSS and Ajaxa Accordion
- Next Thread: using in lass StringBuilder
•
•
•
•
Views: 415 | Replies: 1 | Currently Viewing: 1 (0 members and 1 guests)





Linear Mode