I placed a RichTextBox control on a new form and launched the project. So the RichTextBox.Text = “”;
Each time I press Up or Down keys I heard the annoying BEEP sound! How to get rid of this issue?
Using “e.SuppressKeyPress = true” in the KeyDown method locks the Cursor position.
Well, you can try suppressing the key only if the caret is on the first line and the key is up, or on the last line and the key is down or in position 0 and the key is left, etc.
That said, this is how most textboxes behave, and the sound is set in your operating system preferences. You’d get the same beep in, say, Wordpad or Outlook, if you try to move the caret beyond the limit of a textbox.