Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
dTub
Скачать

Disable scaling issues with Windows Forms Designer in Visual Studio or Disable notifications

Автор: ادد المطيري

Загружено: 2022-07-18

Просмотров: 15412

Описание:

Disable DPI-awareness to fix HDPI / scaling issues with Windows Forms Designer in Visual Studio

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.

Scaling issues in Windows Forms Designer on HDPI monitors

Since the Windows Forms Designer in Visual Studio doesn't have scaling support, display issues can occur when you open some forms on high dots per inch (HDPI) monitors.

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 so that the informational bar doesn't continue to appear.) Only the Windows Forms Designer is affected.

Restart Visual Studio as a DPI-unaware process

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.

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.

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.
Add a registry entry

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:

Entry: Depending on whether you're using Visual Studio 2017, 2019, or 2022, use one of these values:

C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\devenv.exe
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\devenv.exe
C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\devenv.exe
Type: REG_SZ
Value: DPIUNAWARE

Visual Studio remains in DPI-unaware mode until you remove the registry entry.

Set your display scaling setting to 100%

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.
Disable notifications

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.

To disable notifications:

Choose Tools - Options to open the Options dialog.
In the Options dialog, choose Windows Forms Designer - General, and set DPI Scaling Notifications to False.

If you want to later reenable scaling notifications, set the property to True.

source
https://docs.microsoft.com/ar-sa/visu...

Disable scaling issues with Windows Forms Designer in Visual Studio or Disable notifications

Поделиться в:

Доступные форматы для скачивания:

Скачать видео mp4

  • Информация по загрузке:

Скачать аудио mp3

Похожие видео

Deep House Mix 2024 | Deep House, Vocal House, Nu Disco, Chillout Mix by Diamond #3

Deep House Mix 2024 | Deep House, Vocal House, Nu Disco, Chillout Mix by Diamond #3

ЕС всерьез готовится к войне с РФ?

ЕС всерьез готовится к войне с РФ?

Intro to Windows Forms (WinForms) in .NET 6

Intro to Windows Forms (WinForms) in .NET 6

Кремль обратился к НАТО / Неожиданное предложение Киеву

Кремль обратился к НАТО / Неожиданное предложение Киеву

4 Hours Chopin for Studying, Concentration & Relaxation

4 Hours Chopin for Studying, Concentration & Relaxation

ИСТЕРИКА ВОЕНКОРОВ. Z-ники в ярости из-за приезда Зеленского в Купянск. Требуют отставки Герасимова

ИСТЕРИКА ВОЕНКОРОВ. Z-ники в ярости из-за приезда Зеленского в Купянск. Требуют отставки Герасимова

AGI Достигнут! ChatGPT 5.2 Рвет ВСЕ Тесты! Внезапно OpenAI Выкатил Новую ИИ! Новая Qwen от Alibaba.

AGI Достигнут! ChatGPT 5.2 Рвет ВСЕ Тесты! Внезапно OpenAI Выкатил Новую ИИ! Новая Qwen от Alibaba.

Лучший способ установки Windows 11 на любой ПК быстро и без проблем на любой ПК

Лучший способ установки Windows 11 на любой ПК быстро и без проблем на любой ПК

Christmas Magic: Happy Snowman Art Screensaver | 16 Stunning 4K Images for Your TV

Christmas Magic: Happy Snowman Art Screensaver | 16 Stunning 4K Images for Your TV

ХИТЫ 2025🔝Лучшая музыка 2025 🏖️ Зарубежные песни Хиты 🏖️ Популярные песни Слушать бесплатно 2025

ХИТЫ 2025🔝Лучшая музыка 2025 🏖️ Зарубежные песни Хиты 🏖️ Популярные песни Слушать бесплатно 2025

Insert, Update, Delete, Search [CRUD] in VB.NET - MySql (Xampp) | with free source code

Insert, Update, Delete, Search [CRUD] in VB.NET - MySql (Xampp) | with free source code

4 часа Шопена для обучения, концентрации и релаксации

4 часа Шопена для обучения, концентрации и релаксации

use text file as a database for creating an images album project in C# language

use text file as a database for creating an images album project in C# language

Музыка для работы за компьютером | Фоновая музыка для концентрации и продуктивности

Музыка для работы за компьютером | Фоновая музыка для концентрации и продуктивности

«Вот теперь я задумался об эмиграции»: зачем Кремль заблокировал Roblox и как реагируют россияне

«Вот теперь я задумался об эмиграции»: зачем Кремль заблокировал Roblox и как реагируют россияне

Hướng dẫn tạo form Đăng Nhập Trong Visual Studio

Hướng dẫn tạo form Đăng Nhập Trong Visual Studio

Designing a Modern Flat Desktop Application of a Fast Food Restaurant in Visual Basic VB NET

Designing a Modern Flat Desktop Application of a Fast Food Restaurant in Visual Basic VB NET

Morning December ❄️  Happy songs to start your day Playlist  - Live 24/7 - Radio

Morning December ❄️ Happy songs to start your day Playlist - Live 24/7 - Radio

Vintage Floral TV Art Screensaver Tv Wallpaper Home Decor Oil Painting Digital Wall Art

Vintage Floral TV Art Screensaver Tv Wallpaper Home Decor Oil Painting Digital Wall Art

Крах Jaguar: Как “повестка” в рекламе добила легенду британского автопрома

Крах Jaguar: Как “повестка” в рекламе добила легенду британского автопрома

© 2025 dtub. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]