Here's the difference in code. At the bottom of page 236, the book suggests this way to test for a specific exception type:
~~~~~~~~~~~~~~~~~~~~~~~~~
Try
PictureBox1.Image = _
System.Drawing.Bitmap.FromFile("a:\fileopen.bmp")
Catch When Err.Number = 53
... the rest of the code is the same
~~~~~~~~~~~~~~~~~~~~~~~~~
Here's the same thing coded the Microsoft way:
~~~~~~~~~~~~~~~~~~~~~~~~~
Try
PictureBox1.Image = _
System.Drawing.Bitmap.FromFile("a:\fileopen.bmp")
Catch ex As FileNotFoundException
... the rest of the code is the same
~~~~~~~~~~~~~~~~~~~~~~~~~

