Jadeja RJ
Jadeja RJ

Reputation: 1014

Make DropDown Effect panel

I have a panel in a tabcontrol i want to use make effect like panel drop down while user navigates to perticular Tabpage

The Code Below Is I'm using But It's Not Working

Private Sub Tabcontrol1_pagechange(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Tabcontrol1.SelectedIndexChanged
    Panel1.Location = New Point(3, -Panel1.Height)
    Select Case Tabcontrol1.SelectedIndex
        Case 1
            While Panel1.Location.Y < 30
               Panel1.Location = New Point(3, Panel1.Location.Y + 1)
            End While
    End Select
End Sub

Upvotes: 0

Views: 600

Answers (1)

OneFineDay
OneFineDay

Reputation: 9024

Use a Timer to change the location of the Panel. Then when the panel is in place you stop the timer.

Upvotes: 2

Related Questions