Well, last week I asked this question:
At this moment I wanted the program in Load, the OpenFileDialog method is used, but without the user having to select the file you want, since the file to be opened in the code would already be implemented. The code I have is this:
Code
private void CertificateSigningRequest_Load(object sender, EventArgs e)
{
**Abre o ficheiro**
//string desktop = Environment.GetFolderPath(Environment.SpecialFolder.Desktop);
//string filePath = Path.Combine(desktop, label1.Text + ".cnf");
//System.Diagnostics.Process.Start(filePath);
**Quero apenas que ele selecione o ficheiro, mas não abra**
openFileDialog1.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.Desktop);
openFileDialog1.FileName(label1.Text + ".cnf");
}
Thank you.