<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>potisan</author_name>
  <author_url>https://blog.hatena.ne.jp/potisan/</author_url>
  <blog_title>potisanのプログラミングメモ</blog_title>
  <blog_url>https://potisan-programming-memo.hatenablog.jp/</blog_url>
  <categories>
    <anon>C#</anon>
    <anon>Windows</anon>
  </categories>
  <description>WinFormsのContextMenuStripプロパティは対応するコンテキストメニューに設定されたショートカットキーが自動的に反映されます。例えばCtrl+Aとすべて選択が紐づけられたコンテキストメニューがリストビューのContextMenuStripプロパティに設定された場合、リストビューの受け取ったCtrl+Aは自動的にすべて選択として処理されます。無意識に使っていて気付きませんでした。 言い換えれば、ショートカットキーを使用した場合はコンテキストメニューのOpeningイベント等が呼び出されません。項目の選択有無等はメニュー項目のClickイベント側で判定する必要があります。 確認用…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpotisan-programming-memo.hatenablog.jp%2Fentry%2F2026%2F08%2F02%2F192711&quot; title=&quot;C#&amp;amp;WinForms ContextMenuStripプロパティはショートカットキーを自動反映する - potisanのプログラミングメモ&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2026-08-02 19:27:11</published>
  <title>C#&amp;WinForms ContextMenuStripプロパティはショートカットキーを自動反映する</title>
  <type>rich</type>
  <url>https://potisan-programming-memo.hatenablog.jp/entry/2026/08/02/192711</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
