<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>rimever</author_name>
  <author_url>https://blog.hatena.ne.jp/rimever/</author_url>
  <blog_title>より良いエンジニアを目指して</blog_title>
  <blog_url>https://rimever.hatenablog.com/</blog_url>
  <categories>
    <anon>C#</anon>
  </categories>
  <description>WinFormsのFormの仕様として、×で閉じると、DialogResultがCancelになります。Alt+F4で閉じても同様です。 docs.microsoft.com FormのDialogResultの返り値を処理する場合は要注意です。 というわけで上記のようなものを作って動作確認してみました。 Formの×をクリックすると、MSDNの通りにDialogResult.Cancel YesNoのDialogの場合は、×は押せない Okダイアログは×がクリックできる。×をクリックしても結果はOk OkCancelは×がクリックできる。クリックするとCancel。 というわけで、標準のMe…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Frimever.hatenablog.com%2Fentry%2F2021%2F06%2F11%2F000000&quot; title=&quot;意外と奥が深いDialogResult - より良いエンジニアを目指して&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/r/rimever/20210512/20210512084125.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-06-11 00:00:00</published>
  <title>意外と奥が深いDialogResult</title>
  <type>rich</type>
  <url>https://rimever.hatenablog.com/entry/2021/06/11/000000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
