How to point to a Directory? (C#)

jesus4u

Well-known member
Joined
Feb 13, 2003
Messages
47
How to point to a Directory?

ok, I am new to C# so how do I, using an OpenFileDialog control or whatever is equivalent, point to a directory that I want to copy to another location?

Thanks

:-\
 
Strangely enough, there isnt a built-in control (that Ive found) to similar to the OpenFileDialog that allows for directory selection and I havent figured out a way to trick the OpenFileDialog into selecting just directories. I think youll have to write your own, which is fairly simple or there are a number of tutorials on the net that use this as an example.
 
I have included the source file for the directory picker to give you an idea of how to make you own.
I like your user name, check out my site: click
 

Attachments

MS have fixed this lack of a directory picker control in Visual Studio .NET 2003.
 
Back
Top