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


Answer this question

background processes

  • carlengerer

    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>

  • radheshyampatel

    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>. 

  • background processes