Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void richTextBox1_KeyPress(object sender, KeyPressEventArgs e)
- {
- if (e.KeyChar == 13)
- {
- richTextBox2.Clear();
- string texto = richTextBox1.Text;
- string[] linhas = texto.Split('n');
- foreach (string linha in linhas)
- {
- richTextBox2.AppendText(linha + Environment.NewLine);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement