<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sasaki816</author_name>
  <author_url>https://blog.hatena.ne.jp/sasaki816/</author_url>
  <blog_title>佐々木屋</blog_title>
  <blog_url>https://sasaki816.hatenablog.com/</blog_url>
  <categories>
    <anon>1．C#、VB.NET</anon>
    <anon>1．C#、VB.NET-5．オブジェクト指向</anon>
    <anon>1．C#、VB.NET-5．オブジェクト指向-1．継承</anon>
  </categories>
  <description>前回はクラスの継承について説明しましたが、フォームもクラスなわけなので継承可能です。ただ、コードを継承する場合と違い、コントロールを継承する場合は少しひと手間必要です。 継承するフォームの宣言 継承するフォームをコード上に宣言しますが、C#とVB.NETで若干違います。 C#の場合 C#の場合はクラスの継承と同様で、派生クラス名に続いて「：」で区切って継承する基底フォームクラスを宣言します。 public partial class Form2 : Form1 { VB.NETの場合 VB.NETの場合は少しややこしいです。何故VB.NETとC#でクラスの継承はほぼ一緒なのにフォームクラスにな…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsasaki816.hatenablog.com%2Fentry%2F2019%2F02%2F27%2F233615&quot; title=&quot;継承（フォームの継承） - 佐々木屋&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/sasaki816/20190217/20190217202553.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-02-27 23:36:15</published>
  <title>継承（フォームの継承）</title>
  <type>rich</type>
  <url>https://sasaki816.hatenablog.com/entry/2019/02/27/233615</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
