private void button1_Click(object sender, EventArgs e) { openFD.InitialDirectory = "C:"; openFD.Title = "Open dogov"; openFD.FileName = ""; openFD.Filter = "PDF Files(*.pdf)|*.pdf";
openFD.ShowDialog(); Chosen_file = openFD.FileName; openFD.FilterIndex=1; openFD.FileName=Chosen_file; try { if (openFD.ShowDialog() == DialogResult.OK) { textBox15.Text = this.openFD.FileName; } } finally { }
}