Changing textbox from a thread. VB.Net
Posted on 2004-08-23
I cant change the text in a label or textbox from a thread.
Description of what I have.
I have two classes "VIPList", and another Public Class "BackgroundQuery"
When the thread has completed it sends back 2 strings using a public event. if there was no error this process works 100% great. If there is an error the event handler in "VIPList" is supposed to change the textbox text to one of the 2 strings passed from the thread. (instead of being dumped to a txt file) My problem is the text gets passed but not set. The textbox always ends up empty.
Code available if necessary.