I'm facing a problem by using the fb.SelectedPath function of the FolderBrowserDialog. Everything is fine, as long as the absolute path does not contain any ".".
For example:
try
{
if (arg == 1)
fb_dialog.SelectedPath = Path.GetFullPath(tb_path.Text);
else
fb_dialog.SelectedPath = Path.GetFullPath(Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location));
}
catch { fb_dialog.RootFolder = System.Environment.SpecialFolder.MyComputer; }
If System.Reflection.Assembly.GetExecutingAssembly().Location does not contain any ".", it navigates the user into that folder. Let's say the path is like that: "C:\Prog" But if it returns a path with a "." in it, like "C:\Prog.Test", it won't work. It opens the dialog, returns no errors but stucks at the "root" of the filebroser (if specified, otherwise its "Desktop").
Any Ideas how to solve that issue? Because it's quite annoying.
Thanks for help.
UPDATE: Solved by keyboardP in this post: click me