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



Reply With Quote