I am able to open a file dialog, now i want to know how do i get the path of the file in var variable something like
OpenFileDialog fd1 = new OpenFileDialog();
fd1.InitialDirectory = "c:\\";
fd1.Filter = "pdf files (*.pdf)|*.pdf|All Files (*.*)|*.*";
fd1.FilterIndex = 2;
fd1.RestoreDirectory = true;
so i want in my var something like
var path = @"c:\abc.pdf";
Is it possible