I am running some threads on the side of the main thread to search for files with GetFiles() and I want to show the paths of scanned files so I have a simple delegate:
Delegate Sub SetLabelTextInvoker(ByVal TextToDisplay As String)
Public Sub SetLabelText(ByVal TextToDisplay As String)
If MaterialLabel1.InvokeRequired Then
MaterialLabel1.Invoke(New SetLabelTextInvoker(AddressOf SetLabelText), New Object() {TextToDisplay})
Else
MaterialLabel1.Text = TextToDisplay
End If
End Sub
I am running some threads on the side of the main thread to search for files with GetFiles() and I want to show the paths of scanned files so I have a simple delegate:
Example of the render after a while:![render](https://user-images.githubusercontent.com/28290546/27075517-b82c459a-502a-11e7-97ad-a13c09475c37.PNG)