' 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) 
Public Partial Class MainForm
    Public Sub New()
        Me.InitializeComponent()
    End Sub
    Sub Button1Click(sender As Object, e As EventArgs)
        listBox1.Items.AddRange(File.ReadAllLines("C:\work\lb.txt", Encoding.[Default]).Where(Function(s) s.Contains(":")).ToArray())
    End Sub
    Sub Button2Click(sender As Object, e As EventArgs)
        listBox1.Items.Clear()    
    End Sub
End Class
