private void txtLog_TextChanged(object sender, EventArgs e) { string smile1 = ":)"; if (txtLog.Text == smile1) { smile1.Replace(":)", "Happy"); } }
private void txtLog_TextChanged(object sender, EventArgs e) { string smile1 = ":)"; if (txtLog.Text.Contains(smile1)) { txtLog.Text = txtLog.Text.Replace(":)", "Happy"); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)