Type Backspace by Code

SyntaxEditor for Windows Forms Forum

Posted 8 years ago by Frank Ruthardt
Avatar
Hello,
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,
Frank

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

Comments (2)

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

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


Actipro Software Support

Posted 8 years ago by Frank Ruthardt
Avatar
Very nice!
Frank
The latest build of this product (v2018.1 build 0341) was released 3 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.