lock keys

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • priya8014
    New Member
    • Oct 2006
    • 2

    lock keys

    i need to lock ctrl,alt,esc,ta b keys usig vb.net.
    how do i proceed .
  • kunalp2
    New Member
    • Nov 2006
    • 5

    #2
    HI Priya,
    you can do this by following way.

    1. Find out the ASCII code for each of the keys you want to lock
    2. In the key press event check if the ASCII code matches then write code
    e.handled = true (or false i dont rem exactly try one of this).
    3. Please note that Key press event does not get fired in case of certain keys like delete, insert, etc.. So for these keys use key down events.

    Thanks,
    Kunal

    Comment

    Working...