タブページ
ファイル名:Classes\MyTabPageWithWeb.cs
using System; using System.Collections.Generic; using System.Text; using System.Windows.Forms; using ABCS.Interfaces; namespace ABCS.Classes { public class MyTabPageWithWeb : TabPage { private MyTabWebBrowser web_ = null; private MyTabControlWidthRadio childTabControl_ = null; private TabControl parentTabControl_ = null; public MyTabWebBrowser ChildWebBrowser { get { return this.web_; } } public MyTabControlWidthRadio ChildTabControlWithRadio { get { return this.childTabControl_; } } public MyTabPageWithWeb(Form parentForm, TabControl parentTabControl_ , string url) : base() { //this.AllowDrop = true; this.web_ = new MyTabWebBrowser(parentForm, parentTabControl_, this, 10); this.childTabControl_ = new MyTabControlWidthRadio(); /* //①Dock は後続の方が優先される(スタック形式?) ctabctrl.Dock = DockStyle.Top; tab.Controls.Add(ctabctrl); */ //Web表示 this.web_.Dock = DockStyle.Fill; this.Controls.Add(this.web_); // //②Dock は後続の方が優先される(スタック形式?) // //そのため、ctabctrlのaddをwebのaddより後方に移した。 // //(①を②に移した) this.childTabControl_.Dock = DockStyle.Top; this.Controls.Add(this.childTabControl_); //web.DocumentCompleted += webDocumentCompleted; this.web_.Navigate(url); } } }