Posted By

brandonio21 on 09/27/09


file open vb2009 vb2008

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


Vb2008 Open File

 / Published in: VB.NET

  1. On Error GoTo E
  2. Dim openit As New OpenFileDialog
  3. openit.ShowDialog()
  4. Dim readit As New System.IO.StreamReader(openit.FileName)
  5. RichTextBox1.Text = readit.ReadToEnd
  6. readit.Close()
  7. Exit sub
  8. E:
  9. End sub

Report this snippet  

You need to login to post a comment.