Best way of restricting typed characters

SyntaxEditor for Windows Forms Forum

Posted 10 years ago by Chris Morris
Version: 4.0.0281
Avatar
Hi,

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.

Regards,

Chris.

Comments (1)

Posted 10 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Chris,

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 (v2018.1 build 0341) was released 6 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.