03-04-2012, 11:20 AM
It is a segment of code that catches all errors in a code, so for example:
Code:
Try
Dim file As String = "readme.txt"
Dim d As New System.IO.DirectoryInfo("C:/")
Dim f As System.IO.FileInfo()
f = d.GetFiles(file, IO.SearchOption.AllDirectories)
If f.Length > 1 Then
'There are multiple occurences of this file
Else
For Each element In f
WebBrowser1.Navigate(element.FullName)
Next
End If
Catch ex As Exception
Continue For
End Try