<?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のFormへのクリップボード監視機能の追加、コンポーネントとNativeWindowで思ったより簡単に実装できました。NativeWindowの理解が浅いので問題が残っているかもしれませんが、とりあえず動きはします。動作確認はC# 12 (.NET 8.0)ですが、名前空間などの書き方を変えれば以前の.NETでも使えると思います。 プロジェクトにClipboardWatcher.cs等の名前で次のコードを追加して一度ビルドします。後はツールボックスからFormに追加できます。 #pragma warning disable SYSLIB1054 using System.Com…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpotisan-programming-memo.hatenablog.jp%2Fentry%2F2024%2F02%2F12%2F192415&quot; title=&quot;C# WinFormsのクリップボード監視コンポーネント - 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>2024-02-12 19:24:15</published>
  <title>C# WinFormsのクリップボード監視コンポーネント</title>
  <type>rich</type>
  <url>https://potisan-programming-memo.hatenablog.jp/entry/2024/02/12/192415</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
