my user control hangs during operation of the containing app

  • Thread starter Thread starter Rich P
  • Start date Start date
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
 
[...] 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.

You are correct.
If I am correct - how do I accomplish this?

Step one: search this newsgroup using Google for previous questions about
this exact topic.

Pete
 
Back
Top