Sharon,
I don't believe that this is possible. You might be able to hack it by
getting the window handle for the file dialog and then getting the handle
for the listview, and then sending the message to select every item, but
that would seem excessive.
Does the possibility exist that only some files in the directory would
be selected, or will they always be selecting all of the files in the
directory? If it is the latter, then you might want to consider using a
DirectoryBrowseDialog (I believe that is what it is called), as it will let
you select directories.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Sharon" <Sh****@discussions.microsoft.com> wrote in message
news:6A**********************************@microsof t.com...
I'm using OpenFileDialog class in a specific InitialDirectory and I want
that
files will be selected in the opened dialog when I call ShowDialog().
Actually I wish to select all files in the directory automatically by
code.
Is it doable?
How??
--
Regards
Sharon G.