0

I have a simple form containing rich text box. When trying to navigate using the cursor keys from it beeps if the caret can't be moved - for example, pressing Home key when the caret is already on start of line, or trying to move line up when the caret is already on top line. Is there a way to disable those beeps?

Ardent Coder
  • 3,777
  • 9
  • 27
  • 53
  • Does this answer your question? [How to remove annoying BEEP with RichTextBox](https://stackoverflow.com/questions/4683663/how-to-remove-annoying-beep-with-richtextbox). Ignore the marked answer and read the other two answers. – TnTinMn May 24 '20 at 02:15

1 Answers1

0

If you want to disable the ding (beeps) noise from being triggered each time when you press cursor keys or home key, then unfortunately it doesn't seems to be possible. But yeah, you can do it in some specific ways (i.e. using AcceptButton, CancelButton form property described in this SO thread.

Rohan Bari
  • 7,482
  • 3
  • 14
  • 34
  • Hi Rohan, I thought along the same lines and my code now checks if the caret have where to go, and if not I set e.handled to True. Thank You. – ForeverNoob May 17 '20 at 17:50
  • You're welcome. And yes, you can use e.Handled too but I didn't suppose if that's what you were asking in the question. – Rohan Bari May 17 '20 at 18:06