Threading in VB.NET
There's two ways to do this;
- With theAddressOfoperator to an existing methodSub MyBackgroundThread() Console.WriteLine("Hullo") End SubAnd then create and start the thread with;Dim thread As New Thread(AddressOf MyBackgroundThread) thread.Start()
- Or as a lambda function.Dim thread as New Thread( Sub() Console.WriteLine("Hullo") End Sub ) thread.Start()

 
 
 
 
 
 
 
 
 
No comments: