Search code examples
c#.netsendkeysselectall

send ctr+A (select all) with SendKeys.Send()


Hello
I want to send CTR + A to other application for select all text in text box but I don't know how can i send 2 keys simultaneously
I split all keys and send all one by one
for send key i use from this code :

System.Windows.Forms.SendKeys.Send(keys);

now how can i send 2 keys simultaneously
or how can i send ctr + A to other app for select all , can i use from SendKeys or have any other option for send ctr + A simultaneously or any other option for select all text from another application ?


thanks.
kind regards,
sam


Solution

  • Thanks Hans Passant

    Answer : That's already support by SendKeys, be sure to read the MSDN article. Sending Ctrl+A just takes sending "^A". The ^ means Ctrl.