0
I would like to open the openFileDialog at the click of a button. But all my efforts are unsuccessful. I tried this: private void button1_Click(object sender, EventArgs e) { var dialog = new OpenFileDialog(); if (dialog.ShowDialog() == DialogResult.OK) ...