' Collection of code snippets by Arne Vajhøj 
' (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
Imports System
Imports System.Threading

Class MainClass
    Public Shared Sub Main(ByVal args As String())
        Dim t As Timer = New Timer(AddressOf DoIt, Nothing, 0, 1000)
        While True
            Thread.Sleep(100)
        End While
    End Sub

    Shared Sub DoIt(ByVal o As Object)
        Console.WriteLine("Test")
    End Sub
End Class 
