Application.SetHighDpiMode(HighDpiMode) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the high DPI mode of the process.
public:
static bool SetHighDpiMode(System::Windows::Forms::HighDpiMode highDpiMode);
public static bool SetHighDpiMode (System.Windows.Forms.HighDpiMode highDpiMode);
static member SetHighDpiMode : System.Windows.Forms.HighDpiMode -> bool
Public Shared Function SetHighDpiMode (highDpiMode As HighDpiMode) As Boolean
Parameters
- highDpiMode
- HighDpiMode
One of the enumeration values that specifies the high DPI mode to set.
Returns
true
if the high DPI mode was set; otherwise, false
.
Remarks
If an application carries an application manifest file and the DPI mode was set in that file, this method will fail to set or change the mode that was already set by the application manifest. The high DPI mode is set once per process. For more information about setting the DPI mode via the application manifest file, see Setting the default DPI awareness for a process.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기