method Dialog.Attach ([Reserved as Variant])
Attaches the control to the container.

 TypeDescription 
   Reserved as Variant Only for future use.  

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 load the control's picture. 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


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