How to know when its done

If you need help with a project or need to know how to do something specific in VB.NET then please ask your questions in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
3 posts Page 1 of 1
Contributors
User avatar
Dummy1912
VIP - Donator
VIP - Donator
Posts: 1969
Joined: Sat Aug 21, 2010 2:17 pm

How to know when its done
Dummy1912
Hello,

How can i do this code
when the scan has been ended.
Code: Select all
numFiles = 0
            Dim fileEntries As String() = Directory.GetFiles(targetDirectory)
            ' Process the list of files found in the directory.
            Dim fileName As String
            For Each fileName In fileEntries
                numFiles += 1
                ProcessFile(fileName)
            Next fileName

Public Sub ProcessFile(ByVal path As String)
RichTextBox1.AppendText(path & vbNewLine)

??? no idea what to add :( to check the end of the scan
msgbox("the scan has been ended")
End Sub

i want to add a message with
Code: Select all
msgbox("the scan has been ended")
Thank you
visit us on:


http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
User avatar
CodenStuff
Site Admin
Site Admin
Posts: 4392
Joined: Tue Aug 04, 2009 1:47 am

Re: How to know when its done
CodenStuff
In a rush but I think placing the "completed" code under..
Code: Select all
Next Filename
Should do it. I figure it should execute after all that :?
Welcome to CodenStuff.com Learn Code, Love Code. Thank you for being a member of the community.
User avatar
Dummy1912
VIP - Donator
VIP - Donator
Posts: 1969
Joined: Sat Aug 21, 2010 2:17 pm

Re: How to know when its done
Dummy1912
Hello dear #codenstuff

well the point was to place it under this sub
Code: Select all
ProcessFile
so how do i know the scan has ended :)

thanks
visit us on:


http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
3 posts Page 1 of 1
Return to “Coding Help & Support”