Best way of restricting typed characters

SyntaxEditor for Windows Forms Forum

Posted 12 years ago by Chris Morris
Version: 4.0.0281

What is the best way to restrict characters being typed in or pasted in to the Syntax Editor?

Our editor should only accept 7 bit ASCII Characters (0-199, 200-255) due to hardware restrictions.



Comments (1)

Posted 12 years ago by Actipro Software Support - Cleveland, OH, USA

You can handle the KeyTyping event to cancel characters that are typed.

The PasteDragDrop event can be used to process text that will be inserted by paste and/or drag/drop events.

Actipro Software Support

The latest build of this product (v21.1.0) was released 19 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.