private void textBox1_KeyPress(object sender, KeyPressEventArgs e) { textBox1.Text = e.KeyChar.ToString(); }