On Jul 21, 5:28 pm, Abobker mshkan <[email protected]> wrote:
> thanx
>
> 2009/7/21, Cerebrus <[email protected]>:
>
>
>
> > What's the problem with using the OpenFileDialog ?
>
> > On Jul 21, 5:57 pm, "David Adamo Jr." <[email protected]> wrote:
> > > I am looking for is a control that returns a file path, not an opened
> > > stream or something, like OpenFileDialog does. For instance, I click a
> > > browse button and something like the openFileDialog pops up, then I
> > > browse to a particular file, click ok and then it provides me with the
> > > full path to the file I selected.
>
> > > Am I missing something? How do I achieve this?
>
> --
> Baker
Thanks guys. The MSDN library says the FilePath property of the
OpenFileDialog would return only the filename and I want the full path
and the filename.
Nevertheless, I tried the OpenFileDialog and I actually got the full
path to the file i.e. the FilePath property contained something like
E:/NewWorks/foo.txt and not just foo.txt as the MSDN library says it
would return. Therefore, my problem is actually solved.
Does this mean the MSDN library is a bit inaccurate or something?