RSS Forums RSS

listview looping

Please support our C# advertiser: DiscountASP.NET – 3 Months Free on C# Web Hosting
Reply
Posts: 117
Reputation: cVz is an unknown quantity at this point 
Solved Threads: 6
cVz's Avatar
cVz cVz is offline Offline
Junior Poster

listview looping

  #1  
Dec 4th, 2008
Sup ladies and gentlemen, please help me, i need to loop through the listbox, now here's what i have

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...
AddThis Social Bookmark Button
Reply With Quote  
Posts: 117
Reputation: cVz is an unknown quantity at this point 
Solved Threads: 6
cVz's Avatar
cVz cVz is offline Offline
Junior Poster

Re: listview looping

  #2  
Dec 4th, 2008
nevermind , got it
Delphi & C# programmer deluxe...
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.



Similar Threads
Other Threads in the C# Forum
Views: 415 | Replies: 1 | Currently Viewing: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 2:12 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC