I am using Visual Studio 2010, this should apply to any version of Visual Studio running a version of .Net with TabControl and TabPage.
I want to create my own tabpage that I can add to a tabcontrol. I have tried creating a new class where I inherit System.Windows.Forms.TabPage but when I open the designer there is just a window that says "To add components to your class, drag them from the ToolBox and use the properties to set their properties. To create methods and events for your class, click here to switch to code view."
I have tried both the express edition and professional and I still can't figure out how to create an inherited tabpage that I can edit in the designer view. Does anyone know if this is possible and how I should go about it? I am mostly wondering what type of item I need to add to my project.
ublic Class tpPrototype
Inherits System.Windows.Forms.TabPage
Friend WithEvents tpPrototype As System.Windows.Forms.TabPage
Public Sub New()
MyBase.New()
End Sub
<System.Diagnostics.DebuggerStepThrough()> _
Private Sub InitializeComponent()
'initialize component
' Me.tpPrototype = New System.Windows.Forms.TabPage()
Me.SuspendLayout()
'
'tpPrototype
'
Me.Location = New System.Drawing.Point(4, 22)
Me.Name = "tpPrototype"
Me.Size = New System.Drawing.Size(976, 444)
Me.TabIndex = 2
Me.Text = "Login"
Me.UseVisualStyleBackColor = True
Me.ResumeLayout(False)
Me.PerformLayout()
End Sub
End Class