yopibest Level: Protégé
 Registered: 19-01-2009 Posts: 6
|
Turn on Numlock Key
I've created code with vb.Net 2005 which purpose is to turn on the Numlock on. I tried this code:
SendKeys.Send("{NUMLOCK}")
but my keyboard numlock did not work as i wanted. So i used:
dim WshShell as Object = CreateObject("WScript.Shell")
WshShell.SendKeys("{NUMLOCK}")
It works, but then my antivirus keep blocking it. My question is: "How to turn on/off NUMLOCK with vb.net and not by WScritp.Shell?"
If someone could give me advice, i really appreciate. Thanks in advance.
|