Occurs when the page window or web window obtains the focus and becomes the current window.
Private Sub expression_OnActivate( )
expression A variable which references an object of type PageWindowEx or WebWindowEx declared with events in a class module.
The following example uses the IsDirty property to determine if the PageWindowEx object is dirty—that is, if it has been modified since the last refresh or save. The following example saves the PageWindowEx object if the first item in the PageWindows collection is dirty.
Private Sub PgeWindowEx_OnActivate()
'Displays a message when the window obtains focus
If PgeWindowEx.IsDirty Then
PgeWindowEx.Save
End If
End Sub