how to change the text inside an textbox

hi i have tryed this and did not worked

textbox1.Text.Replace("#&ToEmail&#", "")

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


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

any ideas?
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;
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.