Files
docs-desktop/dotnet-desktop-guide/framework/winforms/controls/multithreading-in-windows-forms-controls.md
Andy De George c0ba284473 Initial winforms content migrated (#18)
* Merge winforms framework content to working branch (#14)

* Breadcrumb / TOC / Move net5 to net folder (#15)

* change path from net5 to net

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Add .net 5 winforms placeholder article (#16)

* added some metadata and adjusted net5 placeholder

* corrections

* corrections

* corrections

* Test1

* Swapping landing page vs concept

* fix links

* Fix links

* Fix desc
2020-09-01 16:26:21 -07:00

2.3 KiB

title, ms.date, helpviewer_keywords, ms.assetid
title ms.date helpviewer_keywords ms.assetid
Multithreading in Controls 03/30/2017
BackgroundWorker component
threading [Windows Forms], controls
c311d652-0f26-45fa-bdcc-b1615d73ce4e

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 xref:System.Threading namespace, the xref:System.Windows.Forms.Control.BeginInvoke%2A?displayProperty=nameWithType method, and the BackgroundWorker component.

Note

The BackgroundWorker component replaces and adds functionality to the xref:System.Threading namespace and the xref:System.Windows.Forms.Control.BeginInvoke%2A?displayProperty=nameWithType 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

How to: Make Thread-Safe Calls to Windows Forms Controls
Shows how to make thread-safe calls to Windows Forms controls.

How to: Use a Background Thread to Search for Files
Shows how to use the xref:System.Threading namespace and the xref:System.Windows.Forms.Control.BeginInvoke%2A method to search for files asynchronously.

Reference

xref:System.ComponentModel.BackgroundWorker
Documents a component that encapsulates a worker thread for asynchronous operations.

xref:System.Media.SoundPlayer.LoadAsync%2A
Documents how to load a sound asynchronously.

xref:System.Windows.Forms.PictureBox.LoadAsync%2A
Documents how to load an image asynchronously.

How to: Run an Operation in the Background
Shows how to perform a time-consuming operation with the xref:System.ComponentModel.BackgroundWorker component.

BackgroundWorker Component Overview
Provides topics that describe how to use the xref:System.ComponentModel.BackgroundWorker component for asynchronous operations.