using System; using System.Windows.Forms; public class OpenFileDialogDisplay { public static void Main() { OpenFileDialog dlgOpen = new OpenFileDialog(); if (dlgOpen.ShowDialog() == DialogResult.OK){ Console.Write(dlgOpen.FileName); } } }