<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>powerbombkun</author_name>
  <author_url>https://blog.hatena.ne.jp/powerbombkun/</author_url>
  <blog_title>ボムTIPS</blog_title>
  <blog_url>https://powerbombkun.hatenablog.jp/</blog_url>
  <categories>
    <anon>C#</anon>
  </categories>
  <description>何も考えずにWindowsフォームアプリケーションを作り高DPIのPC上で起動するとこんな感じにボヤけた表示になる。 高DPI未対応これはアプリケーションが高DPI環境に対応できていないためだ。 ボヤけたままの表示はダサいし、文字が見えにくいので対応したいと思い調べたところ、このURLで対処法が書かれていた。 social.msdn.microsoft.com方法としては、Program.csでフォーム作成前にSetProcessDPIAwareをコールするように実装すればよいらしい。 /// &lt;summary&gt; /// アプリケーションのメイン エントリ ポイントです。 /// &lt;/summ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpowerbombkun.hatenablog.jp%2Fentry%2F2021%2F12%2F25%2F004442&quot; title=&quot;高DPIにWindowsフォームアプリケーションを対応させる方法 - ボムTIPS&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/p/powerbombkun/20211223/20211223135308.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-12-25 00:44:42</published>
  <title>高DPIにWindowsフォームアプリケーションを対応させる方法</title>
  <type>rich</type>
  <url>https://powerbombkun.hatenablog.jp/entry/2021/12/25/004442</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
