Results 1 to 3 of 3

Thread: screen locking help

  1. #1

    Thread Starter
    Hyperactive Member zer0_flaw's Avatar
    Join Date
    Apr 2001
    Posts
    448

    Question screen locking help

    Alright, here's what I need: I need it so when my program loads it is the only thing on the computer that may be clicked. I mean the program loads and now the only thing the user can click is things on my program, they can't click any other icons on the desktop, any other running programs, can't click the windows start button... nothing but my program. They can't start any other programs on the computer or anything until they click the button on my program called ("cmdUnlock"). Any ideas on how to go about that? Thanks in advance for your help. Later,

    -zer0 flaw

  2. #2
    Matthew Gates
    Guest
    Try using the LockWindowUpdate API function to lock all handles except your programs.


    VB Code:
    1. Private Declare Function LockWindowUpdate Lib "user32" (ByVal hwndLock As Long) As Long
    2.  
    3.  
    4. [b][u]Usage[/u][/b]
    5.  
    6. 'Lock/Freeze:  LockWindowUpdate hwnd
    7. 'Unlock/Unfreeze:  LockWindowUpdate 0&

  3. #3
    Megatron
    Guest
    You could make sure Form maximized, and always on top. Or you can create a hidden transparent Form in the background and make your main Form in the foreground.

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