[Solved] How do I invoke an Action on a new thread?


“what is the syntax to start a new thread using a parameterless Action”

Here are two examples:

Example 1:

Private Sub MyAction()
    [... Code goes here]
End Sub

Public Sub Test()
    Dim t As New Thread(AddressOf Me.MyAction)
    t.Start()
End Sub

Example 2:

Dim t As New Thread(Sub() [... Code goes here])
t.Start()

2

solved How do I invoke an Action on a new thread?