38. Try Catch

In this tutorial, we cover how to deal with unhandled exceptions using try catch. If your application has ever stopped working because of an unhandled exception, you will understand how frustrating it is. Using try catch, you can set a failsafe for errors and then choose a way to deal with them.


Public Class Form1

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Catch ex As Exception
        End Try
    End Sub

End Class