how to change the text inside an textbox

Posted on 2011-10-15
Last Modified: 2012-05-12
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?
Question by:rafaelrgl
    1 Comment
    LVL 7

    Accepted Solution

    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;

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Join & Write a Comment

    Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
    I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now