private void button1_Click(object sender, EventArgs e) { label6.Text = $@"Form DPI:{DpiUtils.GetFormDpi(this) * 100}%"; label7.Text = $@"Device DPI:{this.GetDeviceDpi() * 100}%"; label10.Text = $@"Check Environment:{DpiUtils.CheckHighDpiEnvironment()}"; }
private void button2_Click(object sender, EventArgs e) { DpiUtils.ChangeFormDpi(this, 1.75); }
private void button4_Click(object sender, EventArgs e) { DpiUtils.SetDPIAwareOld(); }