i need help on how to move button over a panel from the form in which the button is created dynamically at run-time ?

This is an Example.

Dim NewButton = New Button
        With NewButton
            .Name = "MyButton"
            .Size = New Size(25, 25)
            .Location = New Point(50, 50)
        End With

        ' Add the Control
        Me.Controls.Add(NewButton)

This is How to Move it

Me.Controls("MyButton").Top += 15
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.