destroying an usercontrol in execute mode, but created in project mode
i'm using visual basic 6...
in my user control i have these method:
Code:
Public Sub Destroy()
RaiseEvent Destroyed(lngOldPosX, lngOldPosY)
Call UserControl_Terminate
End Sub
then a have the terminate usercontrol event:
Code:
Private Sub UserControl_Terminate()
tmrNewEvents.Enabled = False
tmrAnimation.Enabled = False
tmrMouseStoped.Enabled = False
UserControl.Cls
Set UserControl.MaskPicture = Nothing
sc_Terminate
End Sub
my objective is that the usercontrol can bee build in project mode and destroyed in execute mode.
any sugestions?
thanks