Form1.Designer.csのソース
新規ウィンドウ抑制WebBrowesrを配置しただけのForm1のForm1.Designer.csのソースです。
ちなみに、WebBrowserEx.csとMyWebBrowser.csをソリューションに配置すると、
Form1デザイン時のツールボックスに、「XXXX(ソリューションの名前)コンポーネント」というタブができて、そこからフォームにドラッグ&ドロップで配置できます。
namespace tbtest { partial class Form1 { ////// 必要なデザイナ変数です。 /// private System.ComponentModel.IContainer components = null; ////// 使用中のリソースをすべてクリーンアップします。 /// /// マネージ リソースが破棄される場合 true、破棄されない場合は false です。 protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); } #region Windows フォーム デザイナで生成されたコード ////// デザイナ サポートに必要なメソッドです。このメソッドの内容を /// コード エディタで変更しないでください。 /// private void InitializeComponent() { this.myWebBrowser1 = new ABCS.Classes.MyWebBrowser(); this.SuspendLayout(); // // myWebBrowser1 // this.myWebBrowser1.Dock = System.Windows.Forms.DockStyle.Fill; this.myWebBrowser1.Location = new System.Drawing.Point(0, 0); this.myWebBrowser1.MinimumSize = new System.Drawing.Size(20, 20); this.myWebBrowser1.Name = "myWebBrowser1"; this.myWebBrowser1.Size = new System.Drawing.Size(284, 262); this.myWebBrowser1.TabIndex = 0; // // Form1 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(284, 262); this.Controls.Add(this.myWebBrowser1); this.Name = "Form1"; this.Text = "Form1"; this.ResumeLayout(false); } #endregion private ABCS.Classes.MyWebBrowser myWebBrowser1; } }