Control PagePanel with SegmentedControl?

I have tried various methods to control a PagePanel. I just can’t seem to write the right code to control it.

One of the methods with the Action() command of the SegmentedControl.

If itemIndex = 0 Then PagePanel1.PanelIndex = 0 ElseIf itemIndex = 1 Then PagePanel1.PanelIndex = 1 End If

or

PagePanel1.VALUE=itemIndex

NOT PanelIndex

[quote=39714:@Dave S]or

PagePanel1.VALUE=itemIndex

NOT PanelIndex[/quote]

Thanks so much! Now I’m able to build one-windowed apps!