| | |
listview looping
Please support our C# advertiser: $4.95 a Month - ASP.NET Web Hosting – Click Here!
![]() |
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 array asp.net bitmap box broadcast c# check checkbox client combobox control conversion csharp database datagrid datagridview dataset datetime dbconnection decryption degrees design developer draganddrop drawing encryption enum eventhandlers excel file firefox focus form format forms function gdi+ grantorrevokepermissionthroughc#.net hospitalmanagementsystem image input install interface java libraries list loop marshalbyrefobject math mouseclick movingimage mysql netcfsvcutil.exe numeric operator path photoshop php picturebox pixelinversion platform polynomial post programming properties radians read regex remote remoting richtextbox server sleep socket sql statistics string stringformatting study system.servicemodel table tcpclientchannel text textbox thread time timer update usb usercontrol validation visualstudio webbrowser winforms wpf wpfc# xml





