Question

im opening a FolderBrowserDialog the following way:

        FolderBrowserDialog fbd = new FolderBrowserDialog();
        fbd.Description = desc;
        fbd.SelectedPath = defaultPath;
        fbd.ShowNewFolderButton = showNewFolderButton;
        DialogResult result = fbd.ShowDialog();

        if (result == System.Windows.Forms.DialogResult.OK)
            return fbd.SelectedPath + @"\";
        else
            return ""; 

This works. But every time i select a new folder in this dialog the whole "Folder-Tree" scrolls down to the bottom so that the selected folder is at the bottom of the FolderBrowserDialog. That gets pretty annoying cuz i always have to scroll down again to select another folder...

Any solution for this?

Thx!

Was it helpful?

Solution

I was able to reproduce what you are see in Windows 7. This happens only the first time around though. So if you compress the expanded folder and try again clicking on it, it doesn't move the selected folder down but stays where it is and expands the subfolders under it. This doesn't happen if we use the arrow cursor to expand the folder. Sometimes I see that the selected folder even moves up so as to show all the contents. It might be by design or a minor bug.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top