how to halt/stop fileio.filesystem.copydirectory

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?bWFnZWxsYW4=?=

    how to halt/stop fileio.filesystem.copydirectory


    hi all,


    I have a button (stopcopy) that I want the user to cancel out of a long file
    copying operation.

    I'm not clear what I should "adding" in the sub to make this happen besides
    & return. I want to stop/cancel the file io operation and return back to the
    calling form.



    thanks in advance

    Private Sub CopyMe()

    FileIO.FileSyst em.CopyDirector y(strFromString , strLocString,
    FileIO.UIOption .AllDialogs)


    End Sub




    Private Sub StopCopy_Click( ByVal sender As System.Object, ByVal e As
    System.EventArg s) Handles StopCopy.Click
    Return

    End Sub


  • Mr. Arnold

    #2
    Re: how to halt/stop fileio.filesyst em.copydirector y


    "magellan" <magellan@discu ssions.microsof t.comwrote in message
    news:C334C6B3-CF26-4EAF-817B-4D78A3ADFCA7@mi crosoft.com...
    >
    hi all,
    >
    >
    I have a button (stopcopy) that I want the user to cancel out of a long
    file
    copying operation.
    >
    I'm not clear what I should "adding" in the sub to make this happen
    besides
    & return. I want to stop/cancel the file io operation and return back to
    the
    calling form.
    >
    Specifies whether an exception is thrown if the user clicks Cancel during an operation.


    Comment

    Working...