Type | Description | |||
Visible as Boolean | (By Reference) 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.
Syntax for Show event, /NET version, on:
private void Show(object sender,ref bool Visible) { } Private Sub Show(ByVal sender As System.Object,ByRef Visible As Boolean) Handles Show End Sub |
private void Show(object sender, AxEXDIALOGLib._IDialogEvents_ShowEvent e) { } void OnShow(BOOL FAR* Visible) { } void __fastcall Show(TObject *Sender,VARIANT_BOOL * Visible) { } procedure Show(ASender: TObject; var Visible : WordBool); begin end; procedure Show(sender: System.Object; e: AxEXDIALOGLib._IDialogEvents_ShowEvent); begin end; begin event Show(boolean Visible) end event Show Private Sub Show(ByVal sender As System.Object, ByVal e As AxEXDIALOGLib._IDialogEvents_ShowEvent) Handles Show End Sub Private Sub Show(Visible As Boolean) End Sub Private Sub Show(Visible As Boolean) End Sub LPARAMETERS Visible PROCEDURE OnShow(oDialog,Visible) RETURN |
<SCRIPT EVENT="Show(Visible)" LANGUAGE="JScript"> </SCRIPT> <SCRIPT LANGUAGE="VBScript"> Function Show(Visible) End Function </SCRIPT> Procedure OnComShow Boolean llVisible Forward Send OnComShow llVisible End_Procedure METHOD OCX_Show(Visible) CLASS MainDialog RETURN NIL void onEvent_Show(COMVariant /*bool*/ _Visible) { } function Show as v (Visible as L) end function function nativeObject_Show(Visible) return |
For instance, the following sample lets the control visible no matter if the control is active or not-active:
Private Sub Dialog1_Show(Visible As Boolean)
Visible = Dialog1.Enabled
End Sub