Sorry, I made a mistake.

Use this
VB Code:
  1. Try
  2.  
  3.     '... your code here
  4.  
  5. Catch ex as System.Exception
  6.     MessageBox.Show(ex.ToString())
  7. End Try

Instead of my earlier code
VB Code:
  1. Try
  2.  
  3.     '... your code here
  4.  
  5. Catch ex as System.Exception
  6.     MessageBox.Show(ex.Message.ToString())
  7. End Try