| | |
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 access algorithm angle array asp.net barchart bitmap box broadcast c# capturing check checkbox client combobox control conversion csharp custom database datagrid datagridview dataset datetime dbconnection degrees delegate design development disappear draganddrop drawing encryption enum eventhandlers excel file firefox form format forms function gdi+ image index input install java label leak libraries list listbox loop mandelbrot math monodevelop mouseclick msword mysql operator path pause photoshop picturebox pixelinversion post programming radians regex remoting resourcefile richtextbox round server sleep socket sql statistics stream string table tcpclientchannel text textbox thread time timer update usercontrol validation virtualization visualbasic visualstudio webbrowser windows winforms wpf xml





