.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

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

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -