CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 1999
    Posts
    9

    How to lock all input devices (mouse, keyboard) ?



    Hi, i got another one


    How can i lock all input devices (mouse and keyboard) preventing

    the user to do anything until the app unlocks them again ?


    (First i tried to use the SetSysModalWindow - API function, but

    it doesn't seem to work with Win98...)


    thanks in advance


    Watz



  2. #2
    Join Date
    Jun 1999
    Posts
    40

    Re: How to lock all input devices (mouse, keyboard) ?

    Presumably, you want to prevent users from clicking and typing on a form whilst some processing is going on. I'd suggest a simple

    Me.Enabled = False
    'Do your processing
    Me.Enabled = True

    would do the trick.




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

Featured