Friday, December 17, 2010

Programmatically opening a file in its native program

OpenFileDialog ofd = new OpenFileDialog();


if (ofd.ShowDialog() == DialogResult.OK)

                  System.Diagnostics.Process.Start(ofd.FileName);

No comments:

Post a Comment