• How to create a screen locker in VB.Net(Disable Alt+F4,Alt+Tab,Win Key etc)

    In this tutorial we will see how to make a screen locker in vb.net with Alt+ Tab,Alt+ F4,Alt+ Esc,Windows key & Task Manager Disabled .

    Steps :

    1) Create a new project in visual studio.
    2) Select form properties and set FormBorderStyle to None and WindowState to Maximized.
    3) Now add a Timer set its interval to 1 & select enabled = true
    4) Double click your windows application form.
    5) Erase the entire code and paste the code given below 

    This Code Helps to Disable Alt+F4,ALT+Tab,ALT+ Esc,Win Key & Task Manager :


    6) Now add a label & textbox change its text to "Enter Password" & Login respectively.
    7) Now go to Solution Explorer & select My Project
    8) In my project select Settings add password in Name Column ,Set its Type as String & value to 1234 as shown below.


    9) Now go back to form1 and double click login button & add the following code :
    If TextBox1.Text = My.Settings.password Then
    Me.Close()
    Else
    MsgBox("Incorrect Password", MsgBoxStyle.Critical)
    End If 
    10) Save ii & Debug your project.


    Note : Use 1234 as your password


  • 0 comments:

    Copyright @ 2013 Tech Trigger.