![]() NET Framework versions starting with the. Setting the DpiAwareness value to PerMonitorV2 enables all high DPI awareness features supported by. Opting out of individual high DPI features For example: static void Main()Īpplication.SetCompatibleTextRenderingDefault(false) This should be the first method call in your application entry point. This approach is no longer recommended, since it overrides settings defined on the app.config file.Ĭall the static EnableVisualStyles method. NET Framework, you used the manifest to add high DPI support. To take advantage of the new features that support high DPI, add the following to your application configuration file. Windows Forms introduces a new element to support new features and customizations added starting with the. To do this, add the following to your manifest file: Įnable per-monitor DPI awareness in the app.config file. ![]() In addition, to configure high DPI support in your Windows Forms application, you must do the following: NET Framework 4.7 and are running on Windows operating systems starting with the Windows 10 Creators Update. The new Windows Forms features that support high DPI awareness are available only in applications that target the. Configuring your Windows Forms app for high DPI support You must configure your application to take advantage of it. NET Framework 4.7, enhanced high DPI support is an opt-in feature. Support for dynamic DPI scenarios in which the user changes the DPI or scale factor after a Windows Forms application has been launched. NET Framework 4.6 and earlier versions, scaling was performed through multiple passes, which caused some controls to be scaled more than was necessary. Improvements in the scaling and layout of a number of Windows Forms controls, such as the MonthCalendar control and the CheckedListBox control. NET Framework 4.7, Windows Forms includes enhancements for common high DPI and dynamic DPI scenarios.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |