Best way of restricting typed characters

SyntaxEditor for Windows Forms Forum

Posted 16 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 16 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 (v24.1.1) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.