<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>s51517765</author_name>
  <author_url>https://blog.hatena.ne.jp/s51517765/</author_url>
  <blog_title>プログラミング素人のはてなブログ</blog_title>
  <blog_url>https://s51517765.hatenadiary.jp/</blog_url>
  <categories>
    <anon>C#</anon>
  </categories>
  <description>FormでKeybordからの入力を受け取りたい KeyDown（またはKeyUp、KeyPresでも可）イベントを使うと、例えば「Ctrl」+「s」のようなキー入力コマンドを受け取ることが出来ます。 これをうまく使うと隠しコマンドのようなものを作ることが出来ます。 これが何が便利かというと、ボタンなどを設置しないので、特定のキーの組み合わせの入力を知っている人だけが実行できるイベント（管理者向けイベント）を作ることが出来ます。 private void textBox1_KeyDown(object sender, KeyEventArgs e) { // 下がったキーがCtrlキー + S…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fs51517765.hatenadiary.jp%2Fentry%2F2021%2F08%2F02%2F073000&quot; title=&quot;C#で隠しコマンドを作る - プログラミング素人のはてなブログ&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.blog.st-hatena.com/images/theme/og-image-1500.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-08-02 07:30:00</published>
  <title>C#で隠しコマンドを作る</title>
  <type>rich</type>
  <url>https://s51517765.hatenadiary.jp/entry/2021/08/02/073000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
