E
EnglishMan69
Hello All,
I am using VB2005 Beta 2 in VS 2005 and am running into a small
problem. I need to be able to add a picture box to the main form from
within a thread.
The program goes to a web site, performs a search based on POST
variables, retrieves the code, parses the information (including a url
for a thumbnail image) and displays the results.
I am using threads, since the program will appear to freeze while
posting and retrieving the data otherwise. The problem I am having is
that I cannot seem to create a new picture box on the main form from
within the thread.
Is there a way to do this from within the thread?
I have tried using delegates (though I am could easily be making a
mistake), I have tried having the main form wait for the thread to
complete the processing before creating the picture boxes (though this
makes the program freeze also). I am rapidly running out of ideas...
Thanks!
Adam
I am using VB2005 Beta 2 in VS 2005 and am running into a small
problem. I need to be able to add a picture box to the main form from
within a thread.
The program goes to a web site, performs a search based on POST
variables, retrieves the code, parses the information (including a url
for a thumbnail image) and displays the results.
I am using threads, since the program will appear to freeze while
posting and retrieving the data otherwise. The problem I am having is
that I cannot seem to create a new picture box on the main form from
within the thread.
Is there a way to do this from within the thread?
I have tried using delegates (though I am could easily be making a
mistake), I have tried having the main form wait for the thread to
complete the processing before creating the picture boxes (though this
makes the program freeze also). I am rapidly running out of ideas...
Thanks!
Adam