Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27554

VS 2008 How i can select child control of custom container control?

$
0
0
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

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 Class


thank you.

Viewing all articles
Browse latest Browse all 27554

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>