<?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>C#でFormを複数作ったときに他のFormのデータ（変数やオブジェクトの中身）にアクセスしたいときがあると思います。 しかし、アクセスが拒否されてどうするんだっけ？となります。下図はForm2からForm1のテキストボックスの中身を取得しようとしてはじかれているところです。 何度もつくっているはずですが、何度も調べなおしているのでここでまとめておこうと思います。パターンは以下です。 ・Form1でForm1の内容をFormXへ送る。 ・FormXでForm1の内容をFormXへ送る。これができれば、 ・Form1でFromXの内容をFormXへ送る。 ・FormXでForm1の内容をForm…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fs51517765.hatenadiary.jp%2Fentry%2F2020%2F10%2F12%2F073000&quot; title=&quot;C#でForm1からForm2を参照する - プログラミング素人のはてなブログ&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/s/s51517765/20201010/20201010175533.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-10-12 07:30:00</published>
  <title>C#でForm1からForm2を参照する</title>
  <type>rich</type>
  <url>https://s51517765.hatenadiary.jp/entry/2020/10/12/073000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
