guitardave78
Programmer
Can anyone tell me why this code does not do anything!!
}...the bane of my life!
Code:
Module Module1
Private WithEvents Timer1 As New Timer
Sub main()
Timer1.Interval = 1000
Timer1.Start()
Console.ReadLine()
End Sub
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Dim sProcesses() As System.Diagnostics.Process
Dim sProcess As System.Diagnostics.Process
Dim s As String
MsgBox("tick")
sProcesses = System.Diagnostics.Process.GetProcesses()
s = ""
s = vbCrLf & "Procss Info " & vbCrLf
For Each sProcess In sProcesses
s += sProcess.ProcessName() & vbCrLf
Next
Console.Write(s)
End Sub
End Module
}...the bane of my life!