I want to change textbox's text on Form2 with thread on Form1.
Normally when I click button on Form1 it changes textbox's text on Form2, but if I execute same code but on separate thread, still on Form1, it doesn't change textbox's text.
I've tried adding messagebox, which showed up successfully, so I think it just skips textbox line.
I've also added Control.CheckForIllegalCrossThreadCalls = False
on both forms' load, but it's still the same.
There are no errors
Private Sub myThread()
Form2.TextBox1.Text = "foo" 'text is not changing
MsgBox("123") 'messagebox is showing up
End Sub