Partager via


Multithreading in Windows Forms Controls

In many applications, you can make your user interface (UI) more responsive by performing time-consuming operations on another thread. A number of tools are available for multithreading your Windows Forms controls, including the System.Threading namespace, the System.Windows.Forms.Control.BeginInvoke(System.Delegate) method, and the BackgroundWorker component.

NoteNote

The BackgroundWorker component replaces and adds functionality to the System.Threading namespace and the System.Windows.Forms.Control.BeginInvoke(System.Delegate) method; however, these are retained for both backward compatibility and future use, if you choose. For more information, see BackgroundWorker Component Overview.

In This Section

Reference

  • BackgroundWorker
    Documents a component that encapsulates a worker thread for asynchronous operations.
  • LoadAsync
    Documents how to load a sound asynchronously.
  • LoadAsync
    Documents how to load an image asynchronously.