Page Rank

Subscribe

Categories

Recent posts

Alexa Rank

To check whether caps lock or num lock on or off in vb.net


  • This topic shows how to check whether caps lock on or off and also check whether num lock on or off using vb.net
  • This topic explained in an easy way to check whether caps lock and num lock on or off

VB.NETTo check whether caps lock or num lock on or off in vb.net

  • VB.NET means Visual Basic.NET.
  • It’s an OOP’s language.
  • VB.NET is a .NET version of Visual Basic programming language.
  • VB.NET uses CLR for program execution.
  • According to Microsoft VB.NET was re-engineered rather than released as Visual Basic 6.0 with some add-ons.
  • Different versions of VB.NET are available.
  • Know more about VB.NET

Control Class – To check whether caps lock or num lock on or off in vb.net

  • Control class defines the base class for controls, which are components with visual representation.

Namespace:  System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

  • Syntax

Control.IsKeyLocked Method – To check whether caps lock or num lock on or off in vb.net


  • Control.IsKeyLocked Method determines whether the CAPS LOCK, NUM LOCK, or SCROLL LOCK key is in effect.
  • Use the IsKeyLocked property to determine whether the CAPS LOCK, NUM LOCK, or SCROLL LOCK keys are on, whether individually or in combination.

Namespace:  System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

  • Syntax

Parameters

  • keyVal
  • Type: System.Windows.Forms.Keys
  • The CAPS LOCK, NUM LOCK, or SCROLL LOCK member of the Keys enumeration.

Return Value

  • Type: System.Boolean
  • True if the specified key or keys are in effect; otherwise, false.

To check whether caps lock or num lock on or off in vb.net – Complete Code

 

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)

Leave a Reply

  

  

  

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">