string SearchFor = "Hi"; string ReplaceWith = "Bye"; textbox1.Text = "Hi, this is your textbox string Hi"; textbox1.Text = textbox1.Text.Replace(SearchFor, ReplaceWith); /* RESULTS: "Bye, this is your textbox string Bye" */
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)