Type Backspace by Code

SyntaxEditor for Windows Forms Forum

Posted 14 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 14 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 14 years ago by Frank Ruthardt
Avatar
Very nice!
Frank
The latest build of this product (v24.1.0) 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.