1. 程式人生 > >批量替換某一字串

批量替換某一字串

實現效果:

關鍵知識:

實現程式碼:

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