Skip to content

Commit a243a72

Browse files
Merge pull request #5592 from TerryGLee/tglee-include
add new programming language control INCLUDE file
2 parents a5a54b1 + 9e2465d commit a243a72

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

docs/ide/includes/devlang-control.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
author: TerryGLee
3+
ms.prod: visual-studio-windows
4+
ms.topic: include
5+
ms.date: 10/11/2019
6+
ms.author: tglee
7+
---
8+
> [!IMPORTANT]
9+
> Use the programming language control at the top right of this page to view either the C# code snippet or the Visual Basic code snippet.<br><br>![Programming language control for Docs.Microsoft.com](../media/docs-programming-language-control.png)

docs/ide/step-6-name-your-button-controls.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,7 @@ You can verify the names by choosing the control selector drop-down list in the
5959
End Sub
6060
```
6161

62-
> [!IMPORTANT]
63-
> Use the programming language control at the top right of this page to view either the C# code snippet or the Visual Basic code snippet.<br><br>![Programming language control for Docs.Microsoft.com](../ide/media/docs-programming-language-control.png)
62+
[!INCLUDE [devlang-control](./includes/devlang-control.md)]
6463

6564
You're looking at code called `showButton_Click()` (alternatively, `ShowButton_Click()`). The IDE added this to the form's code when you opened the code file for the **showButton** button. At design-time, when you open the code file for a control in a form, code is generated for the control if it doesn't already exist. This code, known as a *method*, runs when you run your app and choose the control - in this case, the **Show a picture** button.
6665

0 commit comments

Comments
 (0)