R
Rich P
I created a simple ftp app which all it does is download picture files
from my ftp server when you click on a button on a form. I also created
a user control which is just a blinking arrow which gets invoked when
you click the button. The user control is just a picturebox with a
picture of an arrow and a timer.
I added Application.DoEvents() to the timer_tick event of the user
control, but what happens is that when the ftp app is downloading a
large pic file my user control hangs and the arrow wont blink until the
large file is downloaded. I am thinking I probably need to run the user
control in a separate thread from the ftp app. If I am correct - how do
I accomplish this? If the multi-threading approach is not the correct
solution I would appreciate any suggestions how I could resolve the user
control hanging problem.
Thanks
Rich
from my ftp server when you click on a button on a form. I also created
a user control which is just a blinking arrow which gets invoked when
you click the button. The user control is just a picturebox with a
picture of an arrow and a timer.
I added Application.DoEvents() to the timer_tick event of the user
control, but what happens is that when the ftp app is downloading a
large pic file my user control hangs and the arrow wont blink until the
large file is downloaded. I am thinking I probably need to run the user
control in a separate thread from the ftp app. If I am correct - how do
I accomplish this? If the multi-threading approach is not the correct
solution I would appreciate any suggestions how I could resolve the user
control hanging problem.
Thanks
Rich