| | |
listview looping
Please support our C# advertiser: Intel Parallel Studio Home
![]() |
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
C# Syntax (Toggle Plain Text)
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
- 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
| Thread Tools | Search this Thread |
.net 2007 access algorithm appportability array barchart bitmap box broadcast buttons c# camera check checkbox client combobox control conversion cs4 csharp custom database datagrid datagridview dataset date datetime degrees development draganddrop drawing encryption enum event eventcloseformc# excel file form format forms function gdi+ handler httpwebrequest image index input install java keypress label list listbox listener listview load mandelbrot math mouseclick mysql operator path photoshop picturebox pixelinversion post programming radians regex remote remoting richtextbox search security server sleep socket sql statistics stream string table text textbox thread time timer update usercontrol validation view visual visualstudio webbrowser windows winforms wordautomation wpf xml





