You could also define a Pane object as the current pane.
When you set a Pane visible, you set the CurrentPane to this Pane and when you want to change, you set CurrentPane.Visible to false, set the 'new' Pane to visible and set this one to CurrentPane.
CurrentPane holds a reference to the current visible Pane.
When you set Visible = False, you don't need to set Enabled = False !