I have created a base form to use as a template. It inherits System.Windows.Forms.Form. I added one Label control to test, and it automatically generated the following code:
Friend WithEvents Label1 As System.Windows.Forms.Label
Private Sub InitializeComponent()
Me.Label1 = New System.Windows.Forms.Label
Me.SuspendLayout()
'
'Label1
'
Me.Label1.AutoSize = True
Me.Label1.Location = New System.Drawing.Point(12, 9)
Me.Label1.Name = "Label1"
Me.Label1.Size = New System.Drawing.Size(39, 13)
Me.Label1.TabIndex = 0
Me.Label1.Text = "Label1"
'
'FormPanel
'
Me.ClientSize = New System.Drawing.Size(284, 262)
Me.Controls.Add(Me.Label1)
Me.Name = "FormPanel"
Me.ResumeLayout(False)
Me.PerformLayout()
End Sub
I want to create some forms that inherit this base form. In the solution explorer, I add a new item, select the "Inherited Form" type. Then I choose my base form.
It creates the form just fine, but controls inside it don't show up at all in the designer. I've tried rebuilding the project between every step, no go.
Any idea why they aren't showing up?