Search code examples
vb6screen-lock

vb6 lock the screen


I want to know how to make a screen locker using VB6. I have tried maximizing the frame but it still can be minimized. Then I have made the frame very large to fit the entire screen and made the frame irresizeable but someone can press Alt+F4 and close it. I also want the task manager to be disabled. So can anyone please help me?


Solution

  • You can remove the exit button and make the form immovable and irresizeable. The you can call a batch file that will stop the task manager as :

    :run
    taskkill /f /im taskmgr.exe
    goto run
    

    This will continuously stop the task manager if it is opened.