background processes

How do I applow my applicaton to connect to the net without it freezing while it does so.

If that doesn't make sense I will explain:

- I setup a WebRequest to retrieve an image.

- The application pauses for a few seconds

- The Image appears

How do application get their processes to work in the background so nothing temporarily feezes?

[347 byte] By [codefund.com] at [2007-12-16]
# 1
This will probably help you.

<a href=" http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconmakingasynchronousrequests.asp">Making Asynchronous Requests</a>

codefund.com at 2007-9-8 > top of Msdn Tech,Windows Forms,Windows Forms General...
# 2
By creating a new Thread, or obtaining a Thread from the ThreadPool.

There are issues specific to Windows Forms you need to take into consideration, particularly how to handle callbacks to the UI thread. Chris Sells wrote a great series of articles on this; check out Part 1 at <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnforms/html/winforms06112002.asp">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnforms/html/winforms06112002.asp</a>.

codefund.com at 2007-9-8 > top of Msdn Tech,Windows Forms,Windows Forms General...