if (openFileDialog1.ShowDialog() == true)
{
// Open the selected file to read.
System.IO.Stream fileStream = openFileDialog1.SelectedFile.OpenRead();
using (System.IO.StreamReader reader = new System.IO.StreamReader(fileStream))
{
// Read the first line from the file and write it the textbox.
tbResults.Text = reader.ReadLine();
}
fileStream.Close();
}