Hi.
I create custom cantainer control and inside it create custom panel control,
but in design mode I can not select the inside control of my conainer control.
I want select child control of custom container control as TabControl.
![]()
VB.NET 2008
thank you.
I create custom cantainer control and inside it create custom panel control,
but in design mode I can not select the inside control of my conainer control.
I want select child control of custom container control as TabControl.

VB.NET 2008
Code:
Public Class Class1
Inherits ContainerControl
Dim WithEvents p As New Panel
Public Sub New()
Me.Size = New Size(200, 200)
Me.BackColor = Color.LightGray
Me.Controls.Add(p)
p.Size = New Size(100, 100)
p.Location = New Point(10, 10)
p.BackColor = Color.Gray
End Sub
End Classthank you.