.net - How do I get the current state of Caps Lock in VB.NET? -


how find out whether or not caps lock activated, using vb.net?

this follow-up earlier question.

http://msdn.microsoft.com/en-us/library/system.windows.forms.control.iskeylocked.aspx

imports system imports system.windows.forms imports microsoft.visualbasic  public class capslockindicator      public shared sub main()         if control.iskeylocked(keys.capslock)             messagebox.show("the caps lock key on.")         else             messagebox.show("the caps lock key off.")         end if     end sub 'main end class 'capslockindicator    using system; using system.windows.forms;  public class capslockindicator {     public static void main()     {         if (control.iskeylocked(keys.capslock)) {             messagebox.show("the caps lock key on.");         }         else {             messagebox.show("the caps lock key off.");         }     } } 

Comments

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -