say textbox1.text =
1
4
1
6
how can i replace all the "1" with anything i want like say i want to make ever "1" in textbox1.text a 2 so i would need textbox1.text to look like this when i press button1
2
4
2
6
Printable View
say textbox1.text =
1
4
1
6
how can i replace all the "1" with anything i want like say i want to make ever "1" in textbox1.text a 2 so i would need textbox1.text to look like this when i press button1
2
4
2
6
Use this:
vb Code:
Me.TextBox1.Text = Me.TextBox1.Text.Replace("1","2")
thank you
If your question is answered, please mark the thread [RESOLVED].