CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7
  1. #1
    Join Date
    Nov 2000
    Location
    USA
    Posts
    179

    Open a directory selection dialog using c#

    Hi, all!

    How do I open a directory selection dialog using c#?
    Thanks in advance

  2. #2
    Join Date
    Nov 2002
    Location
    Singapore
    Posts
    1,890
    string []str = Directory.GetFiles("C:\\","*.jpg");
    - Software Architect

  3. #3
    Join Date
    Nov 2002
    Location
    Singapore
    Posts
    1,890
    Ah ,
    not the previous one,

    OpenFileDialog d = new OpenFileDialog();
    d.ShowDialog();
    - Software Architect

  4. #4
    Join Date
    Nov 2000
    Location
    USA
    Posts
    179
    Hi!
    Thx a lot, but I think you open FileDialog, but I need a DIRECTORY selection Dialog

    Thx

  5. #5
    Join Date
    Nov 2002
    Location
    Singapore
    Posts
    1,890
    do you have .NET 1.1 Framework,
    then you have a folder option dialogbox there. since in .NET 1.0 you have to do it with using API's .

    Paresh
    - Software Architect

  6. #6
    Join Date
    Nov 2000
    Location
    USA
    Posts
    179
    Yep, I found it!

    System.Windows.Forms.FolderBrowserDialog

  7. #7
    Join Date
    Nov 2002
    Location
    Singapore
    Posts
    1,890
    yes its there in 1.1 but unfortunately 1.0 doesn't have it.

    glad u found it.

    Paresh
    - Software Architect

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured