0

i want to use sendkeys method in vb.net project .whn i put in the code for "WINDOWS KEY" it gives me the error message.tht it is invalid. is it possible to send keys like this:
for example in button's click event i i put
[ sendkeys.send({LWIN})] it says:
"An unhandled exception of type 'System.ArgumentException' occurred in system.windows.forms.dll

Additional information: Keyword "LWIN" not valid."

2
Contributors
1
Reply
2
Views
11 Years
Discussion Span
Last Post by Amit007
0

Send method of SendKeys accepts string argument. Put your key value in double quotes.
e.g. SendKeys.Send("{PRTSC}") - For Print Screen

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.