/ Published in: C#
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
for (int i = 0; i < listBox1.Items.Count; i++) { String Text = Convert.ToString(listBox1.Items[i]); Text = Text.Replace(textBox2.Text, textBox3.Text); listBox1.Items[i] = Text; // listBox1.Items[i] = Regex.Replace(Convert.ToString(listBox1.Items[i]), textBox2.Text, textBox3.Text);