c# - Sending a key on window changed event -


I have a window condition change event in the WPF when the event starts to fire, I want to send an escape key.

Can anyone help me do this?

I recommend you

If you actually Send a look at KeyEventArgs:

  RaiseEvent (new KeyEventArgs ;  

The first argument calls your own keyboard, and the second argument says that it will be sent to your activist, which is expected that your WPF window will be;)

Extend the event with the code behind any WPF control you can

However It is better to present just a custom event, and call the methods that you can escape Expect the event key.

Hope this helps


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -