private void FileStrea_Load(object sender, EventArgs e) { OpenFileDialog ofd = new OpenFileDialog(); ofd.ShowDialog(); fileName = ofd.FileName; FileStreamWrapper.fileName = fileName; textBox1.Text = FileStreamWrapper.OpenFile(); }