BeforeViewSwitch Event

BeforeViewSwitch Event

See Also         Example         Applies To        

Occurs before the explorer changes to a new view, either as a result of user action or through program code. This event is not available in VBScript.

Syntax

Sub object_BeforeViewSwitch(NewView as String, Cancel as Boolean)

object   An expression that evaluates to an Explorer object.

NewView   Required. The name of the view the explorer is switching to.

Cancel   Optional. False when the event occurs. If the event procedure sets this argument to True, the switch is cancelled and the current view is not changed.