I have 2 Textboxes. One for a text you can paste in and one that will give you the same text but without any dots in it.
You can write above code in single line to replace textbox value.
private void TextBox1_TextChanged(object sender, EventArgs e)
{
TextBox2.Text = TextBox1.Text.Replace(".", "");
}