the code i am using to open the file is

Code:
 Dim Filelocation As String
        Dim Textfilestext As String


        If OpenFileDialog1.ShowDialog = Windows.Forms.DialogResult.OK Then

            Filelocation = OpenFileDialog1.FileName
            TextBox1.Text = Filelocation
            Textfilestext = IO.File.ReadAllText(OpenFileDialog1.FileName)