Type | Description | |||
Reserved as Variant | A Long expression that defines the handle of the window to attach the agent control. By attaching it means that the agent is visible, while its container is visible or active window. |
Use the Attach method to attach the control to the container. Usually, you can call call Attach method when the form is loading ( Load event ). Use the Dettach method to detach the control. Use the Enabled property to show or hide the control. Use the Picture property to associate a picture to the agent control. Use the Play method play an ACS/ACF file. Use the Caption property to define the control's caption. Warning! If the form contains multiple instance of ExDialog controls, you have to call Dettach method in reverse order.
For instance, if you called:
Private Sub Form_Load()
Dialog1.Attach
Dialog2.Attach
End Sub
call like follows to detach the controls:
Private Sub Form_Unload(Cancel As Integer)
Dialog2.Dettach
Dialog1.Dettach
End Sub