Results 1 to 5 of 5

Thread: Cancel Event in Inet

  1. #1

    Thread Starter
    Fanatic Member Dim's Avatar
    Join Date
    Jul 2000
    Posts
    620
    Ok,
    i can't seem to cancel my uploads...i want to be able to cancel inet1 and stop and further uploads from occuring..
    I've tried:
    Form1.Inet1.Cancel
    and
    Form1.inet1.Execute, "CLOSE"
    and
    If Form1.Inet1.StillExecuting Then
    Form1.Inet1.Cancel
    End If
    anf
    If Form1.Inet1.StillExecuting Then
    Form1.Inet1.Execute, "CLOSE"
    End If
    all seem to let the user think that the upload is canceled...but actually you can't exit the program untill it fully uploads.
    I've tried asking this b4, but din't recieve much help...

    Question: How do i cancel an upload? and exit a sub on form1 when a button on form2 is pressed.

    Thank you,
    D!m
    Dim

  2. #2
    Fanatic Member
    Join Date
    Jul 2000
    Location
    Manchester NH
    Posts
    833
    Remember its a microsoft control.

    use IE to FTP something and try to cancel it there. Its the same control so it works the same.

    If you find a way around it write microsoft because I'm sure they want to add it to IE
    Kurt Simons
    [I know I'm a hack but my clients don't!]

  3. #3

    Thread Starter
    Fanatic Member Dim's Avatar
    Join Date
    Jul 2000
    Posts
    620
    lol! damn i was hoping someone knows...but i'll find a way.

    Thanx,
    D!m
    Dim

  4. #4
    So Unbanned DiGiTaIErRoR's Avatar
    Join Date
    Apr 1999
    Location
    /dev/null
    Posts
    4,111
    You could use the winsock control.

  5. #5

    Thread Starter
    Fanatic Member Dim's Avatar
    Join Date
    Jul 2000
    Posts
    620
    Winsock is not great for ftp accessing and transfer of files...i used mFTP.ocx but didn't want to register it.
    So i learned inet and the only part i don't understand is the .Cancel method. I'm hoping someone has a way around that or a way to get it to work. (Damn microsoft)

    Laterz,
    D!m
    Dim

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width