How to update TextBox from Background which placed in module? I wrote something like this in my module:
But condition "IsHandleCreated" is always false despite my Form is loaded.
Code:
Private Sub BackgroundWorker1DoWork(sender As System.Object, e As System.ComponentModel.DoWorkEventArgs) Handles BackgroundWorker1.DoWork
If (Form1.IsHandleCreated = True) Then
Form1.Invoke(New MethodInvoker(Sub()
Form1.TextBox49.Text = "test"
End Sub))
End If)
End Sub