Procedure OnHide
Fires when window is hidden. Set pbServerOnHide to True for the server side even to fire.