mirror of
https://github.com/Stone-Red-Code/docs-desktop.git
synced 2026-09-07 07:56:07 +02:00
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
This commit is contained in:
+37
@@ -0,0 +1,37 @@
|
||||
---
|
||||
title: Multithreading in Controls
|
||||
ms.date: "03/30/2017"
|
||||
helpviewer_keywords:
|
||||
- "BackgroundWorker component"
|
||||
- "threading [Windows Forms], controls"
|
||||
ms.assetid: 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](backgroundworker-component-overview.md).
|
||||
|
||||
## In This Section
|
||||
[How to: Make Thread-Safe Calls to Windows Forms Controls](how-to-make-thread-safe-calls-to-windows-forms-controls.md)
|
||||
Shows how to make thread-safe calls to Windows Forms controls.
|
||||
|
||||
[How to: Use a Background Thread to Search for Files](how-to-use-a-background-thread-to-search-for-files.md)
|
||||
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.
|
||||
|
||||
## Related Sections
|
||||
[How to: Run an Operation in the Background](how-to-run-an-operation-in-the-background.md)
|
||||
Shows how to perform a time-consuming operation with the <xref:System.ComponentModel.BackgroundWorker> component.
|
||||
|
||||
[BackgroundWorker Component Overview](backgroundworker-component-overview.md)
|
||||
Provides topics that describe how to use the <xref:System.ComponentModel.BackgroundWorker> component for asynchronous operations.
|
||||
Reference in New Issue
Block a user