掲示板システム
ホーム
アクセス解析
カテゴリ
ログアウト
フォームの共通要素を基本フォームにまとめるには? (ID:144524)
名前
ホームページ(ブログ、Twitterなど)のURL (省略可)
本文
癒耶さん、レスありがとうございます。 FormBaseのDesignerソースコードは以下の通りです。 <Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _ Partial Class FormBase Inherits System.Windows.Forms.Form 'フォームがコンポーネントの一覧をクリーンアップするために dispose をオーバーライドします。 <System.Diagnostics.DebuggerNonUserCode()> _ Protected Overrides Sub Dispose(ByVal disposing As Boolean) Try If disposing AndAlso components IsNot Nothing Then components.Dispose() End If Finally MyBase.Dispose(disposing) End Try End Sub 'Windows フォーム デザイナで必要です。 Private components As System.ComponentModel.IContainer 'メモ: 以下のプロシージャは Windows フォーム デザイナで必要です。 'Windows フォーム デザイナを使用して変更できます。 'コード エディタを使って変更しないでください。 <System.Diagnostics.DebuggerStepThrough()> _ Private Sub InitializeComponent() Me.Label1 = New System.Windows.Forms.Label Me.TextBox1 = New System.Windows.Forms.TextBox Me.Button1 = New System.Windows.Forms.Button Me.Label2 = New System.Windows.Forms.Label Me.Button2 = New System.Windows.Forms.Button Me.SuspendLayout() ' 'Label1 ' Me.Label1.AutoSize = True Me.Label1.Location = New System.Drawing.Point(28, 24) Me.Label1.Name = "Label1" Me.Label1.Size = New System.Drawing.Size(55, 12) Me.Label1.TabIndex = 0 Me.Label1.Text = "ヘッダ部分" ' 'TextBox1 ' Me.TextBox1.Location = New System.Drawing.Point(91, 23) Me.TextBox1.Name = "TextBox1" Me.TextBox1.Size = New System.Drawing.Size(150, 19) Me.TextBox1.TabIndex = 1 Me.TextBox1.Text = "メッセージ" ' 'Button1 ' Me.Button1.Location = New System.Drawing.Point(271, 22) Me.Button1.Name = "Button1" Me.Button1.Size = New System.Drawing.Size(79, 29) Me.Button1.TabIndex = 2 Me.Button1.Text = "追加" Me.Button1.UseVisualStyleBackColor = True ' 'Label2 ' Me.Label2.AutoSize = True Me.Label2.Location = New System.Drawing.Point(28, 296) Me.Label2.Name = "Label2" Me.Label2.Size = New System.Drawing.Size(52, 12) Me.Label2.TabIndex = 3 Me.Label2.Text = "フッタ部分" ' 'Button2 ' Me.Button2.Location = New System.Drawing.Point(271, 296) Me.Button2.Name = "Button2" Me.Button2.Size = New System.Drawing.Size(79, 29) Me.Button2.TabIndex = 4 Me.Button2.Text = "閉じる" Me.Button2.UseVisualStyleBackColor = True ' 'FormBase ' Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 12.0!) Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font Me.ClientSize = New System.Drawing.Size(371, 350) Me.Controls.Add(Me.Button2) Me.Controls.Add(Me.Label2) Me.Controls.Add(Me.Button1) Me.Controls.Add(Me.TextBox1) Me.Controls.Add(Me.Label1) Me.Name = "FormBase" Me.Text = "Form1" Me.ResumeLayout(False) Me.PerformLayout() End Sub Friend WithEvents Label1 As System.Windows.Forms.Label Friend WithEvents TextBox1 As System.Windows.Forms.TextBox Friend WithEvents Button1 As System.Windows.Forms.Button Friend WithEvents Label2 As System.Windows.Forms.Label Friend WithEvents Button2 As System.Windows.Forms.Button End Class
←解決時は質問者本人がここをチェックしてください。
更新する
戻る
掲示板システム
Copyright 2021 Takeshi Okamoto All Rights Reserved.