simulate shortcut key

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hey all,
in my code-behind windows project (vs2005) i was wondering if you can
simulate the pressing of key combinations (i.e. Alt + S)?

thanks,
rodchar
 
hey all,
in my code-behind windows project (vs2005) i was wondering if you can
simulate the pressing of key combinations (i.e. Alt + S)?

thanks,
rodchar

Well, you can certainly detect if Alt + S is being pressed if that is what you mean. You may have to set KeyPreview on the parent form to get notified of keypresses in controls having their own keypress handling.
 
rodchar said:
hey all,
in my code-behind windows project (vs2005) i was wondering if you can
simulate the pressing of key combinations (i.e. Alt + S)?

thanks,
rodchar

Look into System.Windows.Forms.SendKeys.

Chris.
 
Back
Top