CLR,How to set RootFolder of FodlerBrowserDialog to be Current Working Directory
-
FolderBrowserDialog FolderBrowserDialog1; //FolderBrowserDialog1.RootFolder=System::Environment::SpecialFolder::Startup;
-
FolderBrowserDialog FolderBrowserDialog1; //FolderBrowserDialog1.RootFolder=System::Environment::SpecialFolder::Startup;
Something like,
FolderBrowserDialog folderBrowser;
folderBrowser.SelectedPath = Application::StartupPath;Best wishes, Navaneeth
-
FolderBrowserDialog FolderBrowserDialog1; //FolderBrowserDialog1.RootFolder=System::Environment::SpecialFolder::Startup;
The application's current working directory can be obtained with System::IO::Directory::GetCurrentDirectory(). The current working directory is not necessarily the same as the startup path :)
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
The application's current working directory can be obtained with System::IO::Directory::GetCurrentDirectory(). The current working directory is not necessarily the same as the startup path :)
Mark Salsbery Microsoft MVP - Visual C++ :java: