批量替换某一字符串

实现效果:

关键知识:

实现代码:

        private void button1_Click(object sender, EventArgs e)
        {
            if(textBox1.Text!=string.Empty){
                textBox1.Text =
                    textBox1.Text.Replace(textBox2.Text,textBox3.Text);
            }
        }

猜你喜欢

转载自www.cnblogs.com/feiyucha/p/9901728.html