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



NOT PanelIndex

[quote=39714:@Dave S]or


NOT PanelIndex[/quote]

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