View Poll Results: Is it possible to stop keystrokes?

Voters
2. You may not vote on this poll
  • Yes,definetly

    2 100.00%
  • Never heard of doing that

    0 0%
  • No,its impossible

    0 0%
Results 1 to 2 of 2

Thread: Stopping Keystrokes

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2003
    Location
    canada
    Posts
    2

    Stopping Keystrokes

    Hi,im a fairly new vb programmer and i was curious....
    is there a way to actualy STOP people from using keystrokes like alt-f4,ctrl-alt-delete,[windows key] etc....

    any response would be appreceated
    K.J.

  2. #2
    Fanatic Member Armbruster's Avatar
    Join Date
    Sep 2002
    Location
    Maryland Heights, MO
    Posts
    857
    VB Code:
    1. Private Declare Function BlockInput _
    2.     Lib "user32" _
    3.     (ByVal fBlock As Long) As Long
    4.  
    5. Private Sub DoSomething()
    6.     'Turn off keyboad and mouse
    7.     BlockInput True
    8.    
    9.     'do your stuff here
    10.    
    11.     'Turn on keyboad and mouse
    12.     BlockInput False
    13. End Sub
    "Look! Up in the sky! It's a bird! It's a plane! It's Diaper-Head Boy! (there by my name!) Yes, Diaper-Head Boy, who disguised as my son, Seth, fights a never-ending battle for truth, justice and terrorizing my house!

    Resistance is futile, you will be compiled . . . Please!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width