Hi,
its less complicated than it seems to be, you have just to find the right location to attach your Handlers to, an example:
public partial class MainForm : Form
{
public MainForm()
{
//
// The InitializeComponent() call is required for Windows Forms designer support.
//
InitializeComponent();
this.textEditorControl1.ActiveTextAreaControl.TextArea.KeyDown += new KeyEventHandler(this.TextEditor_KeyDown);
this.textEditorControl1.ActiveTextAreaControl.TextArea.KeyUp += new KeyEventHandler(this.TextEditor_KeyUp);
this.textEditorControl1.ActiveTextAreaControl.TextArea.KeyPress += new KeyPressEventHandler(this.TextEditor_KeyPress);
}
private void TextEditor_KeyDown(object sender, KeyEventArgs e)
{
System.Diagnostics.Debug.Print("KeyDown: " + e.KeyData.ToString());
}
private void TextEditor_KeyUp(object sender, KeyEventArgs e)
{
System.Diagnostics.Debug.Print("KeyDown: " + e.Modifiers.ToString());
}
private void TextEditor_KeyPress(object sender, KeyPressEventArgs e)
{
System.Diagnostics.Debug.Print("KeyDown: " + e.KeyChar.ToString());
}
}