event Show (Visible as Boolean)
Occurs whether the control is shown or hidden.

 TypeDescription 
   Visible as Boolean A boolean expression that indicates whether the control is shown or hidden.  

By default, the control is hidden when the container is deactivated. The Show event is fired each time when the control needs to change the visibility state. By handling the Show event you can control whether the control is visible or hidden no matter if the container is activated or deactivated. Use the Enabled property to show or hide the control. The Visible property of the control has no effect on the control. For instance, the following sample lets the control visible no matter if the control is active or deactive:

Private Sub Dialog1_Show(Visible As Boolean)
    Visible = Dialog1.Enabled
End Sub


Send comments on this topic.
© 1999-2006 Exontrol Inc, Software. All rights reserved.