ダニエルが言ったように、「ActiveTextAreaControl.TextArea」イベントを使用して、Enter、Space、Combinations などのキーをキャプチャするには、次のようなコードを使用して CTRL + Space の組み合わせをキャッチします。
public frmConexon()
{
InitializeComponent();
this.txtEditor.ActiveTextAreaControl.TextArea.KeyUp += new System.Windows.Forms.KeyEventHandler(TextArea_KeyUp);
}
void TextArea_KeyUp(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Space && e.Control)
{
TextArea S = (TextArea)sender;
MessageBox.Show(string.Format("CTRL + Spacio ({0})", S.Caret.ScreenPosition.ToString()));
}
}
この例では、キャレットの画面座標を取得しています。そこにポップアップ ウィンドウを表示したいからです。