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
In this article, you'll learn the limitations of Windows Forms Designer on HDPI monitors and [how to run Visual Studio as a DPI-unaware process](#resolve-hdpi-display-problems).
16
+
In this article, you'll learn about the limitations of Windows Forms Designer on HDPI monitors and [how to run Visual Studio as a DPI-unaware process](#resolve-hdpi-display-problems).
17
17
18
-
Visual Studio is a dots per inch (DPI) aware application, which means the display scales automatically. If an application states that it's not DPI-aware, the operating system scales the application as a bitmap. This behavior is also called DPI virtualization. The application still thinks that it's running at 100% scaling, or 96 dpi.
18
+
Visual Studio is a dots per inch (DPI) aware application, which means the display scales automatically. If an application states that it's not DPI-aware, the operating system scales the application as a bitmap. This behavior is also called DPI virtualization. The application still thinks that it's running at 100% scaling, or 96 DPI.
19
19
20
20
You can also:
21
21
+[Automatically scale in Windows Forms](/dotnet/framework/winforms/automatic-scaling-in-windows-forms)
@@ -27,81 +27,69 @@ Since the **Windows Forms Designer** in Visual Studio doesn't have scaling suppo
27
27
28
28

29
29
30
-
If you aren't working in the designer and don't need to adjust the layout of your form, you can ignore the informational bar and continue working in the code editor or in other types of designers. (You can also [disable notifications](#disable-notifications) so that the informational bar doesn't continue to appear.) Only the **Windows Forms Designer** is affected.
30
+
### Use the information bar
31
31
32
-
When you open a form in the **Windows Forms Designer** on an HDPI monitor, Visual Studio displays an informational bar.
33
-
34
-
:::image type="content" source="media/scaling-gold-bar-message-1.png" alt-text="Screenshot of the informational bar in Visual Studio to restart in DPI-unaware mode.":::
32
+
When you open a form in the **Windows Forms Designer** on an HDPI monitor, Visual Studio displays an information bar.
35
33
34
+
:::image type="content" source="media/scaling-gold-bar-message-1.png" alt-text="Screenshot of the information bar in Visual Studio to restart in DPI-unaware mode.":::
36
35
36
+
If you aren't working in the designer and don't need to adjust the layout of your form, you can ignore the information bar and continue working in the code editor or in other types of designers. (You can also [disable notifications](#disable-notifications) so that the information bar doesn't continue to appear.) Only the **Windows Forms Designer** is affected.
37
37
38
38
> [!TIP]
39
-
> If you've closed the informational bar at the top of the designer, but you still want to replicate the behavior of the link that says **Restart Visual Studio with 100% scaling**, you still can. Select **Tools** > **Command Line** > **Developer Command Prompt** from the Visual Studio menu bar. Then, enter `devenv /noScale`.
39
+
> If you've closed the information bar but you still want restart Visual Studio with 100% scaling, you can. [Use the DevEnv.exe tool](#use-the-devenvexe-tool) to do so.
40
40
41
41
## Resolve HDPI display problems
42
42
43
-
There are three options to resolve the display problem:
43
+
There are several options to resolve the display problem:
44
44
45
45
-[Restart Visual Studio as a DPI-unaware process](#restart-visual-studio-as-a-dpi-unaware-process)
46
-
-[Add a registry entry](#add-a-registry-entry)
46
+
<!-- - [Add a registry entry](#add-a-registry-entry)-->
47
47
-[Set your display scaling setting to 100%](#set-your-display-scaling-setting-to-100)
48
-
49
-
> [!TIP]
50
-
> If you prefer to manage settings from the command line, [`devenv.exe`](../ide/reference/devenv-command-line-switches.md) takes `/noscale` as a command-line parameter to run in 100% scaling mode.
48
+
-[Use the DevEnv.exe tool](#use-the-devenvexe-tool)
51
49
52
50
### Restart Visual Studio as a DPI-unaware process
53
51
54
-
The preferred solution to this issue is to restart Visual Studio as a DPI-unaware process. Do so by selecting the option on the yellow informational bar.
52
+
The preferred solution to this issue is to restart Visual Studio as a DPI-unaware process. Do so by selecting the option on the yellow information bar.
55
53
56
-
When Visual Studio runs as a DPI-unaware process, the designer layout issues are resolved, but fonts may appear blurry and you may see issues in other designers such as the **XAML Designer**.. Visual Studio displays a different yellow informational message when it runs as a DPI-unaware process that says **Visual Studio is running as a DPI-unaware process. WPF and XAML designers might not display correctly.** The informational bar also provides an option to **Restart Visual Studio as a DPI-aware process**.
54
+
When Visual Studio runs as a DPI-unaware process, the designer layout issues are resolved, but fonts may appear blurry and you may see issues in other designers such as the **XAML Designer**. Visual Studio displays a different yellow informational message when it runs as a DPI-unaware process that says **Visual Studio is running as a DPI-unaware process. WPF and XAML designers might not display correctly.** The informational bar also provides an option to **Restart Visual Studio as a DPI-aware process**.
57
55
58
56
::: moniker range="<=vs-2019"
59
57
60
58
> [!NOTE]
61
-
> - If you have undocked tool windows in Visual Studio when you select the option to restart as a DPI-unaware process, the position of the tool windows might change.
59
+
> - If you have undocked [tool windows](../ide/customizing-window-layouts-in-visual-studio.md#tool-and-document-windows) in Visual Studio when you select the option to restart as a DPI-unaware process, the position of the tool windows might change.
62
60
> - If you use the default Visual Basic profile, or if you have the **Save new projects when created** option deselected in **Tools** > **Options** > **Projects and Solutions**, Visual Studio cannot reopen your project when it restarts as a DPI-unaware process. However, you can open the project by selecting it under **File** > **Recent Projects and Solutions**.
63
61
64
62
::: moniker-end
65
63
66
64
::: moniker range=">=vs-2022"
67
65
68
66
> [!NOTE]
69
-
> - If you have undocked tool windows in Visual Studio when you select the option to restart as a DPI-unaware process, the position of the tool windows might change.
67
+
> - If you have undocked [tool windows](../ide/customizing-window-layouts-in-visual-studio.md#tool-and-document-windows) in Visual Studio when you select the option to restart as a DPI-unaware process, the position of the tool windows might change.
70
68
> - If you use the default Visual Basic profile, Visual Studio cannot reopen your project when it restarts as a DPI-unaware process. However, you can open the project by selecting it under **File** > **Recent Projects and Solutions**.
71
69
72
70
::: moniker-end
73
71
74
72
It's important to restart Visual Studio as a DPI-aware process when you're finished working in the **Windows Forms Designer**. If you close and reopen Visual Studio when it's running in DPI-unaware mode, it becomes DPI-aware again. You can also select the **Restart Visual Studio as a DPI-aware process** option in the informational bar.
75
73
76
-
### Add a registry entry
77
-
78
-
As option two, you can mark Visual Studio as DPI-unaware by modifying the registry. Open **Registry Editor** and add an entry to the **HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers** subkey:
79
-
80
-
**Entry**: Depending on whether you're using Visual Studio 2017, 2019, or 2022, use one of these values:
> If you're using the Professional or Enterprise edition of Visual Studio, replace **Community** with **Professional** or **Enterprise** in the entry. Also replace the drive letter as necessary.
74
+
### Set your display scaling setting to 100%
88
75
89
-
**Type**: REG_SZ <br>
90
-
**Value**: DPIUNAWARE
76
+
A third option to resolving the issue is to set your display scaling setting to 100% in Windows 10, type **display settings** in the task bar search box, and then select **Change display settings**. In the **Settings** window, set **Change the size of text, apps, and other items** to **100%**. However, setting your display scaling to 100% may be undesirable since it can make the user interface too small to be usable.
91
77
92
-
Visual Studio remains in DPI-unaware mode until you remove the registry entry.
78
+
### Use the DevEnv.exe tool
93
79
94
-
### Set your display scaling setting to 100%
80
+
If you prefer to manage settings from the command line, [`devenv.exe`](../ide/reference/devenv-command-line-switches.md) takes `/noscale` as a command-line parameter to run in 100% scaling mode. Here's how:
95
81
96
-
A third option to resolving the issue is to set your display scaling setting to 100% in Windows 10, type **display settings** in the task bar search box, and then select **Change display settings**. In the **Settings** window, set **Change the size of text, apps, and other items** to **100%**. However, setting your display scaling to 100% may be undesirable since it can make the user interface too small to be usable.
82
+
1. Select **Tools** > **Command Line** > **Developer Command Prompt** from the Visual Studio menu bar.
83
+
1. Then, enter `devenv /noScale`.
97
84
98
85
## Disable notifications
99
86
100
87
You can choose not to be notified of DPI scaling issues in Visual Studio. You might want to disable notifications if you aren't working in the designer, for example.
101
88
102
89
To disable notifications:
90
+
103
91
1. Choose **Tools** > **Options** to open the **Options** dialog.
104
-
2. In the **Options** dialog, choose **Windows Forms Designer** > **General**, and set **DPI Scaling Notifications** to **False**.
92
+
1. In the **Options** dialog, choose **Windows Forms Designer** > **General**, and set **DPI Scaling Notifications** to **False**.
105
93
106
94
If you want to later reenable scaling notifications, set the property to **True**.
Copy file name to clipboardExpand all lines: docs/get-started/includes/ide-overview.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ The preceding image shows Visual Studio with an open project that shows key wind
29
29
- The central [editor window](../../ide/writing-code-in-the-code-and-text-editor.md), where you'll probably spend most of your time, displays file contents. In the editor window, you can edit code or design a user interface such as a window with buttons and text boxes.
30
30
31
31
32
-
- In [Git Changes](/visualstudio/version-control/) at lower right, you can track work items and share code with others by using version control technologies like [Git](https://git-scm.com/) and [GitHub](https://docs.github.com/).
32
+
- In [Git Changes](/visualstudio/version-control/) at lower right, you can track work items and share code with others by using version control technologies like [Git](https://git-scm.com/) and [GitHub](https://github.com/).
Copy file name to clipboardExpand all lines: docs/get-started/visual-basic/visual-studio-ide.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,7 @@ The preceding image shows Visual Studio with an open Visual Basic project that s
42
42
::: moniker-end
43
43
44
44
::: moniker range=">=vs-2022"
45
-
- In [Git Changes](/visualstudio/version-control/) at lower right, you can track work items and share code with others by using version control technologies like [Git](https://git-scm.com/) and [GitHub](https://docs.github.com/).
45
+
- In [Git Changes](/visualstudio/version-control/) at lower right, you can track work items and share code with others by using version control technologies like [Git](https://git-scm.com/) and [GitHub](https://github.com/).
Copy file name to clipboardExpand all lines: docs/ide/create-new-project.md
+6-9Lines changed: 6 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: Create a new project
3
3
description: Learn how to create a new project in Visual Studio.
4
4
ms.custom: SEO-VS-2020
5
-
ms.date: 11/24/2021
5
+
ms.date: 10/28/2022
6
6
ms.topic: how-to
7
7
f1_keywords:
8
8
- vs.newproject
@@ -59,7 +59,7 @@ If you're not selecting from the recently used templates, you can filter all ava
59
59
60
60
:::image type="content" source="media/vs-2019/create-new-project-filters.png" alt-text="Screenshot of the project template filters in Visual Studio 2019.":::
61
61
62
-
The tags that appear under each template correspond to the three dropdown filters (Language, platform, and project type).
62
+
The tags that appear under each template correspond to the three dropdown filters (language, platform, and project type).
63
63
64
64
> [!TIP]
65
65
> If you don't see the template you're looking for, you might be missing a workload for Visual Studio. To install additional workloads, for example, **Azure Development** or **Mobile Development with .NET**, select the **Install more tools and features** link to open Visual Studio Installer. From there, select the workloads you want to install, and then select **Modify**. After that, additional project templates will be available to choose from.
@@ -74,7 +74,7 @@ Select a template and then select **Next**.
74
74
75
75
:::image type="content" source="media/vs-2022/create-new-project-filters.png" alt-text="Screenshot of the project template filters in Visual Studio 2022.":::
76
76
77
-
The tags that appear under each template correspond to the three dropdown filters (Language, platform, and project type).
77
+
The tags that appear under each template correspond to the three dropdown filters (language, platform, and project type).
78
78
79
79
> [!TIP]
80
80
> If you don't see the template you're looking for, you might be missing a workload for Visual Studio. To install additional workloads, for example, **Azure Development** or **Mobile Development with .NET**, select the **Install more tools and features** link to open Visual Studio Installer. From there, select the workloads you want to install, and then select **Modify**. After that, additional project templates will be available to choose from.
@@ -118,16 +118,13 @@ Select **Create** to create the new project.
118
118
119
119
::: moniker-end
120
120
121
-
## Add additional projects to a solution
121
+
## Add another project to a solution
122
122
123
-
If you want to add an additional project to a solution, right-click the solution node in **Solution Explorer** and then select **Add** > **New Project**.
123
+
If you want to add another project to a solution, right-click the solution node in **Solution Explorer** and then select **Add** > **New Project**.
124
124
125
125
> [!TIP]
126
126
> For an example of a project and solution created from scratch, complete with step-by-step instructions and sample code, see [Introduction to projects and solutions](../get-started/tutorial-projects-solutions.md).
127
127
128
128
## See also
129
129
130
-
-[Introduction to projects and solutions](../get-started/tutorial-projects-solutions.md)
131
-
-[Work with solutions and projects](creating-solutions-and-projects.md)
132
-
-[Manage project and solution properties](managing-project-and-solution-properties.md)
133
-
-[Create projects (Visual Studio for Mac)](/visualstudio/mac/create-new-projects)
130
+
-[Visual Studio for Mac: Create a new project](/visualstudio/mac/create-new-projects)
Copy file name to clipboardExpand all lines: docs/ide/reference/connected-experiences.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ Visual Studio consists of client software applications and connected experiences
21
21
22
22
## Choose whether these connected experiences are available to use ##
23
23
24
-
You can choose which connected experiences to use. Use of certain connected experiences require agreement to different and additional terms to the Visual Studio EULA. These experiences may be Microsoft-owned online services and/or services owned by third-parties. For example, when you use GitHub connected experiences, the [GitHub Privacy Statement](https://docs.github.com/github/site-policy/github-privacy-statement) and [GitHub Terms of Service](https://docs.github.com/github/site-policy/github-terms-of-service), [GitHub Corporate Terms of Service](https://docs.github.com/github/site-policy/github-corporate-terms-of-service), and/or [Additional Product Terms](https://docs.github.com/github/site-policy/github-additional-product-terms) will apply. If you [Report A Problem](../how-to-report-a-problem-with-visual-studio.md), you agree to the [Microsoft Terms of Use](https://www.microsoft.com/legal/terms-of-use) and the [Microsoft Privacy Statement](https://privacy.microsoft.com/en-us/privacystatement). If you use the NuGet service, you agree to the [NuGet Terms of Use](https://www.nuget.org/policies/Terms) and the [Microsoft Privacy Statement](https://privacy.microsoft.com/en-us/privacystatement).
24
+
You can choose which connected experiences to use. Use of certain connected experiences require agreement to different and additional terms to the Visual Studio EULA. These experiences may be Microsoft-owned online services and/or services owned by third-parties. For example, when you use GitHub connected experiences, the [GitHub Privacy Statement](https://docs.github.com/en/site-policy/privacy-policies/github-privacy-statement) and [GitHub Terms of Service](https://docs.github.com/en/site-policy/github-terms/github-terms-of-service), [GitHub Corporate Terms of Service](https://docs.github.com/en/site-policy/github-terms/github-corporate-terms-of-service), and/or [Additional Product Terms](https://docs.github.com/en/site-policy/github-terms/github-terms-for-additional-products-and-features) will apply. If you [Report A Problem](../how-to-report-a-problem-with-visual-studio.md), you agree to the [Microsoft Terms of Use](https://www.microsoft.com/legal/terms-of-use) and the [Microsoft Privacy Statement](https://privacy.microsoft.com/en-us/privacystatement). If you use the NuGet service, you agree to the [NuGet Terms of Use](https://www.nuget.org/policies/Terms) and the [Microsoft Privacy Statement](https://privacy.microsoft.com/en-us/privacystatement).
25
25
26
26
When you install Visual Studio, [you may optionally select workloads and components to install](../../install/install-visual-studio.md). Workloads and components may leverage third-party software, and they may enable connected experiences, depending on their functionality. For example, [downloading the Azure development workload allows you to publish your cloud apps to Azure](https://visualstudio.microsoft.com/vs/features/azure/). Based on your installation selections, you may also use the Tools and Options menu to connect to, to configure, and to use connected experiences. For example, you can connect to a server, add Azure Services authentication, or change IntelliCode or LiveShare settings.
0 commit comments