I have a program with a user control. In the user control is an Internet Control (to download stuff). If the user wants to Cancel the download and exit the program, for some reason the program re-opens and resumes download; Even after Inet.Cancel function is called.

AirDisp is the UserControl (instances of)
deletedCtrls is the number of deleted controls

Code:
Private Sub Form_Unload(Cancel As Integer)

    On Error Resume Next
    
    Dim cCtrl As Integer
    
    For cCtrl = 1 To AirDisp.Count + deletedCtrls - 1

        AirDisp(cCtrl).Cancel

    Next cCtrl


End Sub
My question is; is there a way to cancel the download and close the program?