Directory Dialog Box??
-
Hello.. ;) I want to make Directory Dialog Box not File Dialog Box.. (It means I want get Directory name When I select Directory name in the dialog. You Know!!) However I hardly know How to make it. :confused: Is there anyone can help me? Thanks.. I'm not who I was
-
Hello.. ;) I want to make Directory Dialog Box not File Dialog Box.. (It means I want get Directory name When I select Directory name in the dialog. You Know!!) However I hardly know How to make it. :confused: Is there anyone can help me? Thanks.. I'm not who I was
Using the .Net 1.1 SDK you can just use the System.Windows.Forms.FolderBrowserDialog. If you are using the 1.0 SDK you can inherit from System.Windows.Forms.Design.FolderNameEditor. This implementation will most likely require that you use a FolderNameEditor.FolderBrowser. I have a class already written that can do this job if you like. Also, I think there is at least one implementation posted here on CP. Hey don't worry, I can handle it. I took something. I can see things no one else can see. Why are you dressed like that? - Jack Burton
-
Hello.. ;) I want to make Directory Dialog Box not File Dialog Box.. (It means I want get Directory name When I select Directory name in the dialog. You Know!!) However I hardly know How to make it. :confused: Is there anyone can help me? Thanks.. I'm not who I was
By using FolderNameEditor class and FolderBrowser class u can make Directory Dialog Box. public class DirBrowser : FolderNameEditor { FolderBrowser fb = new FolderBrowser(); public string DirectoryPath { get { return strDirectoryPath; } } public DirBrowser() { } public DialogResult ShowDialog() { fb.Description = "Choose Directory"; fb.StartLocation = FolderBrowserFolder.MyComputer; fb.Style = FolderBrowserStyles.RestrictToFilesystem; DialogResult dlgResult = fb.ShowDialog(); if (dlgResult == DialogResult.OK) strDirectoryPath = fb.DirectoryPath; else strDirectoryPath = ""; return dlgResult; } private string strDirectoryPath = ""; } Instaniate DirBrowser class, call ShowDialog function and use DirectoryPath property to get the directory path :- DirBrowser obDirBrowser = new DirBrowser(); obDirBrowser.ShowDialog (); txtLogFilePath.Text = obDirBrowser.DirectoryPath ; Chito.
-
Hello.. ;) I want to make Directory Dialog Box not File Dialog Box.. (It means I want get Directory name When I select Directory name in the dialog. You Know!!) However I hardly know How to make it. :confused: Is there anyone can help me? Thanks.. I'm not who I was
http://www.codeproject.com/cs/miscctrl/folderbrowser.asp[^] Mazy "And the carpet needs a haircut, and the spotlight looks like a prison break And the telephone's out of cigarettes, and the balcony is on the make And the piano has been drinking, the piano has been drinking...not me...not me-Tom Waits