Error Handling in Visual Basic 2012

Error handling is an essential procedure in Visual Basic 2012 programming because it helps make a program error-free. Error-free code not only enables the programs to run smoothly and efficiently, it can also prevent all sorts of problems from happening like program crashes or system hangs.

Errors often occur due to incorrect input from the user. For example, the user might make the mistake of attempting to enter text (string) to a box that is designed to handle only numeric values such as the weight of a person, the computer will not be able to perform arithmetic calculation for text therefore will create an error. These errors are known as synchronous errors.

Read more about error handling in Visual Basic 2012 at:

http://www.vbtutor.net/index.php/visual-basic-2012-lesson-20/