Articles → CSHARP → Sendkeys.Sendwait() Function In C#Sendkeys.Sendwait() Function In C#In this article, we will discuss the "SendKeys.SendWait()" function in C#.Purpose The "SendKeys.SendWait()" function sends the keystrokes to the active application.Example In this example, we will send the "ALT + F4" key stroke to the notepad file. For that, we have created a form with the button.On click of button, add the following codeSendKeys.SendWait("%{F4}");Output Run the application and you can see the following outputClick to EnlargePosted By - Karan Gupta Posted On - Thursday, July 15, 2021 Query/Feedback Your Email Id** Subject* Query/Feedback Characters remaining 250**
SendKeys.SendWait("%{F4}");
Query/Feedback