1. Computing & Technology

Discuss in my forum

Visual Basic .NET 2010 Express - Errors: Preventing and Handling Them

Part 11 of an About Visual Basic Tutorial

By , About.com Guide

Updated May 19, 2011

This is a free tutorial to help beginning programmers get up to speed using Microsoft Visual Basic 2010 Express. To get the most from this tutorial, you might want to start at the beginning. A complete index to the course is also in the front of the first lesson.

Part 1 - A "From the Ground Up" Tutorial - An introduction to the course.

.

The philosophy of error handling in programming

"A stitch in time saves nine."

"An ounce of prevention is worth a pound of cure."

"Prevention is always better then reaction."

Keep these well worn proverbs in mind to write code with great error prevention and handling. If you're writing a little utility that you'll only use on your own PC (such as our personal Signature Block program), clearing up a program crash due to some unforseen error isn't catastophic. But if the bug is in a DLL that has been distributed to a hundred branch offices, fixing a relatively simple problem could cost more than writing the program in the first place.

Error prevention and error handling is a priority subject for most software. That's why techniques for doing this have been seriously upgraded in VB.NET. We take a look at the .NET way to handle errors on the next page.

  1. About.com
  2. Computing & Technology
  3. Visual Basic
  4. Learn VB.NET
  5. Visual Basic .NET 2010 Express - Errors: Preventing and Handling Them

©2012 About.com. All rights reserved.

A part of The New York Times Company.