Type Backspace by Code

SyntaxEditor for Windows Forms Forum

Posted 13 years ago by Frank Ruthardt
Is there a posibility to raise an key input event from external code?
In my case I have a syntax editor and some buttons on a form.
If a special button is clicked there have to be executed backspace in the syntax editor.

So I need a function like:
syntaxEditor.Type(... Key ...);

best regards,

[Modified at 10/14/2010 05:32 AM]

Comments (2)

Posted 13 years ago by Actipro Software Support - Cleveland, OH, USA
Hi Frank,

You can execute any of the commands like this:
editor.SelectedView.RaiseEditCommand(new BackspaceCommand());

Actipro Software Support

Posted 13 years ago by Frank Ruthardt
Very nice!
The latest build of this product (v23.1.2) was released 23 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.