how can i remove a controls at run time.

To Remove Controls at Runtime fromthe Form
Use Controls.Remove ( Ctrl )

Where Ctrl is the Object reference for Control

Ex: Assume You have Button1 and Button2. Now the Following will remove button1 when press button2

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        Controls.Remove(Button1)
    End Sub
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.