' 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, 2000) ' kør hver 2. sekund
        While True
            Thread.Sleep(100) ' undlad at afslutte programmet
        End While
    End Sub

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