Page 1 of 1

Help with text replace in VB.NET

Posted: Sun Jul 29, 2012 2:17 pm
by CodenBoy
Hello,

I need super little help, what is the replace code for textbox? i dont know why textbox1.text.replace("a","A") or anything wont work..

Thanks!

Re: Help with text replace in VB.NET

Posted: Sun Jul 29, 2012 2:45 pm
by lolxot
Code: Select all
textbox1.text = textbox1.text.replace("text", "new text")
try this

Re: Help with text replace in VB.NET

Posted: Sun Jul 29, 2012 3:38 pm
by CodenBoy
wow, nice little code :)

it worked great :D thanks!!