how to use Pupup menu for PagePanel

I want to use Pupup Menu for change page of PagePanel
but I do not know how to write code?

In the PopupMenu.Change event handler, you put the code to change the PagePanel to the page you want:

MyPagePanel.Value = 2 // Display the third panel (0-based)

In the PopupMenu.Change Event handler:

MyPagePanel.Value = Me.ListIndex 'PagePanel Page = n'th entry in PopupMenu

or
In the PopupMenu.Change Event handler:

Select Case Me.ListIndex Case 1 MyPagePanel.Value = 0 'For first page of pagepanel Case 2 ... End Select