You want:
Try
(do something)
Catch Err as Exception
(if an error occurs, Err defines it)
Finally
(always executed)
End Try
Finally, VB got some proper error handling courtesy of Delphi. VB.NET only, though. I'd also recommend it because the GDI methods are a lot more stable, and won't produce random errors.