Microsoft Visual Basic
Debugging and error handling exercise
Relatively easy

This Microsoft Visual Basic DEBUGGING AND ERROR HANDLING exercise is provided to allow potential course delegates to assess their suitability for the Wise Owl VISUAL BASIC 2005 WINDOWS FORMS course only, and may not be reproduced in whole or in part in any format without the prior written consent of Wise Owl.

Exercise: Debugging: using a MultiSelect list box

A full answer to this exercise is provided as part of the training course!

1) Download the files needed to start this exercise: exercise-653.zip (and click here if you experience any problems unzipping this file after downloading it).
2) Add the form shown contained in the folder shown above to your project.
3) Use debugging to work out what the program does.  Remember:
  • You can press F9 or click on the grey left margin of a line to set a breakpoint
  • You can use F11 to step into a property or subroutine, or F10 to step over it
  • You can use the immediate window to look at specific values
4) Add statements like Debug.Indent and Debug.WriteLine to your code so that you get an answer something like this:
Exercise screen-shot 1273 Your immediate window definitely does not have to look exactly like this
5) When you have finished, close down any open forms.

Thank you for showing an interest in this Visual Basic 2005 Windows Forms training course! As mentioned above, full answers to this and other exercises are provided on the course. On all Wise Owl scheduled courses delegates can take away these model answers (together with their own efforts!) on a free USB stick.

All content copyright Wise Owl Business Solutions Ltd 2008.  All rights reserved..