0

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

1
Contributor
1
Reply
2
Views
9 Years
Discussion Span
Last Post by cVz
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.