VB.NET
* Public Class Form1

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If TextBox1.Text = TextBox2.Text Then
Form2.Show()
Me.Hide()
Else
MsgBox("암호가틀림,다시입력하세여.")
TextBox1.Clear()
TextBox2.Clear()
End If
End Sub
End Class

Public Class Form2

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If TextBox1.Text = Form1.TextBox1.Text Then
MsgBox("비밀번호맞음,Unlocked")
Me.Close()
Form1.Show()
End If
End Sub

Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Timer1.Start()
End Sub

Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Me.TopMost = True
Me.BringToFront()
Me.Focus()

For Each selprocess As Process In Process.GetProcesses
If selprocess.ProcessName = "tastmgr" Then
selprocess.Kill()
Exit For
End If

Next
Me.Enabled = True
End Sub
End Class 

바탕화면 실행시 전 안되네여 방법을 찾아서 알려주세여.

 

http://www.youtube.com/watch?v=_hxOQDDjLr4&feature=player_detailpage

일정시간이 지나면 자동 잠김기능도 넣어보세여..