vb.net Code:
  1. Try
  2.             PictureBox1.Image = Image.FromFile("C:\test.txt") 'or whatever
  3.         Catch
  4.             PictureBox1.Image = PictureBox1.ErrorImage
  5.         End Try