OpenFileDialog ofd = new OpenFileDialog();if(ofd.ShowDialog()==DialogResult.Ok){ textBox1.Text = ofd.FileName;}