I have a textbox where I am able to find and replace things with a click on the button, but it does not change the textbox itself. Below is the code I'm using to change some stuff to my need:
private void button2_Click_1(object sender, EventArgs e)
{
var abc = textBox1.Text.Between("abc", "&");
var def = textBox1.Text.Between("def", "&");
var ghi = textBox1.Text.Between("ghi", "&");
var jkl = textBox1.Text.Between("jkl", "&");
var test = abc.Replace("" + abc + "", "any");
var test1 = def.Replace("" + def + "", "any");
var test2 = ghi.Replace("" + ghi + "", "any");
var test3 = jkl.Replace("" + jkl + "", "any");
}
now I'm using that with a button but when I fire up the button it does not change anything in my textbox.
I've been googling around offcourse and found this.textBox1.Refresh();
but this also doens't change anything.
All help would be great, thanks in advance..