zl程序教程

您现在的位置是:首页 >  其他

当前栏目

批量替换某一字符串

批量 字符串 替换 某一
2023-09-14 09:00:21 时间

实现效果:

关键知识:

实现代码:

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