Show Event (UserDocument Object)

       

Occurs when the object’s Visible property changes to True.

Syntax

Sub object_Show()

The Show event syntax has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.

Remarks

In order to draw to the screen in Windows, any object must have a window, temporarily or permanently; Visual Basic ActiveX documents have permanent windows. Before object has been sited on a form, its window is not on the container. The UserDocument object receives Show events when the window is added.

While object’s window is on the container, object receives a Show event when object’s Visible property changes to True.

Object does not receive Show events if the container is hidden and then shown again, or if the container is minimized and then restored. Object’s window remains on the container during these operations, and its Visible property doesn’t change.

If object is being shown in an internet browser, a Show event occurs when the user navigates to the page.

Note   If object is used with earlier versions of Visual Basic than 5.0, object will not receive Show events at design time. This is because earlier versions of Visual Basic did not put any visible windows on a form at design time.