how to change the text inside an textbox

hi i have tryed this and did not worked


textbox1.Text.Replace("#&ToEmail&#", "email@hotmail.com")

then i need to send this value to another string after change this text inside the text box.

like

dim vstr as string = textbox1.text.tostring()

any ideas?
LVL 1
rafaelrglAsked:
Who is Participating?
 
Bill NolanOwner, Lead Technology ProgrammerCommented:
Move it to the string first, and use the String class's Replace function.

dim s as string = textbox.Text;

s = s.Replace("old", "new");

Put it back in textbox if you want:

textbox.Text = s;
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.