how to perform a hold ALT+TAB sendkey event in C#

mendez picture mendez · Aug 5, 2011 · Viewed 23.7k times · Source

I am trying to use a sendkey event that holds the ALT key and then presses the TAB key. How do you perform that action, I've tried many variations but I can't seem to find the answer, thanks.

Answer

Ziad picture Ziad · Jan 22, 2012

After going through the MSDN documentation page I came up with this and it seems to be working just fine for me:

SendKeys.Send("%{Tab}");