hi to all

I made a lot of textboxes in my usercontrol. Now I used it in another forms. how can I know the name of each textboxes since it is formed as one control.

thanks in advance

Hi, Change the Modifier of TextBoxes to Public in the User Control. Or Make Appropriate Properties to Access the Textbox for example
In usercontrol

Public ReadOnly Property MyTextBox1() As TextBox
        Get
            Return TextBox1
        End Get
    End Property

Then Usercontrol1.MyTextBox1.Text = "Something"

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.