Getting file path
Hi guys,
I want to open an Access File. So I need to get the file name (easy) and the respective path for making the connection string. How can i do it with an OpenFileDialog or something like that???
Thanks
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

AlanRank #669 · 3.6K reputationPosted Jun 22, 2007, 10:50 AM EDT
The OpenFileDialog's FileName property returns the full path of the selected file:
http://msdn2.microsoft.com/en-us/library/system.windows.forms.filedialog.filename(vs.80).aspx
zhang limei5 reputationPosted Jun 22, 2007, 7:54 PM EDT
{
textBox1.Text =openFileDialog1.FileName ;
}