Hey,now i need to Replace this text "Kelvin.1337" From textbox1.text....By meaning when i write into textbox1.text a word i need to change Kelvin.1337 to the word which i wrote it into textbox1.text

photo link: http://imgur.com/5EOsMob

but i got problem when i write the word it delete all text and appear the word which i wrote it into textbox1.text

i need to keep all words in textbox2 execpt the word which i changed it from textbox1.text

 TextBox2.Text = TextBox1.Text.Replace("Kelvin.1337", TextBox1.Text

Recommended Answers


Try using the 'Instr' method. see Click Here

Jump to Post

All 2 Replies

'It should be, Textbox2 = Textbox2
'copy paste this

TextBox2.Text = TextBox2.Text.Replace("Kelvin.1337", TextBox1.Text)
Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.