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."

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