You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/ide/create-a-visual-basic-winform-in-visual-studio.md
+12-16Lines changed: 12 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ ms.subservice: general-ide
8
8
ms.topic: tutorial
9
9
dev_langs:
10
10
- VB
11
-
ms.date: 03/28/2024
11
+
ms.date: 01/24/2025
12
12
ms.custom: vs-acquisition
13
13
#customer intent: As a developer, I want to create a simple Visual Basic program to understand how Visual Studio handles Forms.
14
14
---
@@ -28,11 +28,11 @@ In this tutorial, you learn how to:
28
28
## Prerequisites
29
29
30
30
::: moniker range="vs-2019"
31
-
- You need Visual Studio to complete this tutorial. Visit the [Visual Studio downloads page](https://visualstudio.microsoft.com/vs/) for a free version.
31
+
- You need Visual Studio to complete this tutorial. Visit [Visual Studio downloads](https://visualstudio.microsoft.com/vs/) for a free version.
32
32
- The **.NET desktop development** workload. To verify or install this workload in Visual Studio, select **Tools** > **Get Tools and Features**. For more information, see [Change workloads or individual components](../install/modify-visual-studio.md#change-workloads-or-individual-components).
33
33
::: moniker-end
34
34
::: moniker range=">=vs-2022"
35
-
- You need Visual Studio to complete this tutorial. Visit the [Visual Studio downloads page](https://visualstudio.microsoft.com/downloads/?cid=learn-onpage-download-cta) for a free version.
35
+
- You need Visual Studio to complete this tutorial. Visit [Visual Studio downloads](https://visualstudio.microsoft.com/downloads/?cid=learn-onpage-download-cta) for a free version.
36
36
- The **.NET desktop development** workload. To verify or install this workload in Visual Studio, select **Tools** > **Get Tools and Features**. For more information, see [Change workloads or individual components](../install/modify-visual-studio.md#change-workloads-or-individual-components).
37
37
::: moniker-end
38
38
@@ -42,19 +42,17 @@ Create a Visual Basic application project.
42
42
The project type comes with all the template files that you need.
43
43
44
44
::: moniker range="vs-2019"
45
-
1. Open Visual Studio.
45
+
1. Open Visual Studio, then select **Create a new project** on the start window.
46
46
47
-
1. On the start window, select **Create a new project**.
48
-
49
-
:::image type="content" source="../get-started/media/vs-2019/create-new-project-dark-theme.png" alt-text="Screenshot shows the Visual Studio 2019 start window with Create a new project selected.":::
47
+
:::image type="content" source="../get-started/media/vs-2019/create-new-project-dark-theme.png" alt-text="Screenshot showing the Visual Studio 2019 start window with Create a new project selected.":::
50
48
51
49
1. On the **Create a new project** window, select the **Windows Forms App (.NET Framework)** template for Visual Basic.
52
50
53
51
You can refine your search to quickly get to the template you want.
54
52
For example, enter *Windows Forms App* in the search box.
55
53
Next, select **Visual Basic** from the languages list, and then **Windows** from the platform list.
56
54
57
-
:::image type="content" source="../get-started/visual-basic/media/vs-2019/vb-create-new-project-search-winforms-filtered.png" alt-text="Screenshot shows the Create a new project window with Windows Forms App (.NET Framework) selected." lightbox="../get-started/visual-basic/media/vs-2019/vb-create-new-project-search-winforms-filtered.png":::
55
+
:::image type="content" source="../get-started/visual-basic/media/vs-2019/vb-create-new-project-search-winforms-filtered.png" alt-text="Screenshot showing the Create a new project window with Windows Forms App (.NET Framework) selected." lightbox="../get-started/visual-basic/media/vs-2019/vb-create-new-project-search-winforms-filtered.png":::
58
56
59
57
1. In the **Configure your new project** window, enter *HelloWorld* as the **Project name**. Then, select **Create**.
60
58
@@ -65,19 +63,17 @@ The project type comes with all the template files that you need.
65
63
::: moniker-end
66
64
67
65
::: moniker range=">=vs-2022"
68
-
1. Open Visual Studio.
69
-
70
-
1. On the start window, choose **Create a new project**.
66
+
1. Open Visual Studio, then select **Create a new project** on the start window.
71
67
72
-
:::image type="content" source="../get-started/media/vs-2022/create-new-project.png" alt-text="Screenshot shows the Visual Studio 2022 start window with Create a new project selected.":::
68
+
:::image type="content" source="../get-started/media/vs-2022/create-new-project.png" alt-text="Screenshot that shows the Visual Studio 2022 start window with Create a new project selected.":::
73
69
74
70
1. On the **Create a new project** window, select the **Windows Forms App (.NET Framework)** template for Visual Basic.
75
71
76
72
You can refine your search to quickly get to the template you want.
77
73
For example, enter *Windows Forms App* in the search box.
78
74
Next, select **Visual Basic** from the language list, and then **Windows** from the platform list.
79
75
80
-
:::image type="content" source="../get-started/visual-basic/media/vs-2022/vb-create-new-project-search-winforms-filtered.png" alt-text="Screenshot shows the Create a new project window with Windows Forms App (.NET Framework) selected." lightbox="../get-started/visual-basic/media/vs-2022/vb-create-new-project-search-winforms-filtered.png":::
76
+
:::image type="content" source="../get-started/visual-basic/media/vs-2022/vb-create-new-project-search-winforms-filtered.png" alt-text="Screenshot that shows the Create a new project window with Windows Forms App (.NET Framework) selected." lightbox="../get-started/visual-basic/media/vs-2022/vb-create-new-project-search-winforms-filtered.png":::
81
77
82
78
1. In the **Configure your new project** window, enter *HelloWorld* as the **Project name**. Then, select **Create**.
83
79
@@ -100,7 +96,7 @@ You create a *Hello World* application by adding controls to the form.
100
96
101
97
If you want, select the **Pin** icon to dock the **Toolbox** window.
102
98
103
-
1.Select the **Button** control and then drag it onto the form.
99
+
1.In the **Common Controls** section, select the **Button** control and then drag it onto the form.
104
100
105
101
:::image type="content" source="media/create-a-visual-basic-winform-in-visual-studio/toolbox-button-form.png" alt-text="Screenshot shows the Button control added to the form.":::
106
102
@@ -119,7 +115,7 @@ You create a *Hello World* application by adding controls to the form.
119
115
120
116
## Add a label and code
121
117
122
-
After you add a button control to create an action, add a label control to send text to.
118
+
After you add a button control to create an action, add a label control to receive the text.
123
119
124
120
1. Select the **Label** control in the **Toolbox** window, and then drag it onto the form.
0 commit comments