VB - Error Handling


Have you ever had an error like this?:


I will teach you how you can suppress these errors so your application won't crash anymore.

All you need to do is add 'Try - Catch' to your codes.


e.g. The codes above;


Should become:

When an error occures, your program won't crash, it will show a messagebox explaining there was an error.
You could also just leave it blank after Catch, like this:


Download the source codes:
ErrHandling.rar (59,7 kB)


Topic: VB - Error Handling

Date: 14/11/2012

By: James

Subject: Where is where

WTF Where are photos ?