Add how-to-make-thread-safe-calls.md & Update Layout with margin/padding (#1119)

* Update with margin/padding

* add how-to-make-thread-safe-calls

* reverse property mentions
This commit is contained in:
Andy (Steve) De George
2021-07-26 18:14:58 -04:00
committed by GitHub
parent 09d28345c2
commit d30fae457c
35 changed files with 1341 additions and 9 deletions
@@ -1,6 +1,6 @@
---
title: How to add or remove an event handler
description: Learn how to create an event handler at design-time with the Windows Forms Designer in Visual Studio or at run-time.
description: Learn how to create an event handler for a control at design-time with the Windows Forms Designer in Visual Studio or at run-time.
ms.date: 07/16/2021
dev_langs:
- "csharp"
@@ -18,7 +18,7 @@ helpviewer_keywords:
- "menu items [Windows Forms], multicasting event-handling methods"
---
# How to handle an event (Windows Forms .NET)
# How to handle a control event (Windows Forms .NET)
Events for controls (and for forms) are generally set through the Visual Studio Visual Designer for Windows Forms. Setting an event through the Visual Designer is known as handling an event at design-time. You can also handle events dynamically in code, known as handling events at run-time. An event created at run-time allows you to connect event handlers dynamically based on what your app is currently doing.