Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Don't show network drives using FileOpenDialog

Right now when I use FileOpenDialog it takes quiet some time to open, I tested it and it seems that it happens when the user have too many network drives. Is there a way to not show them or at least make them async so it doesn't take too much time?

like image 543
VegaBrothers Avatar asked Mar 20 '26 00:03

VegaBrothers


1 Answers

I'm afraid this is not possible with plain framework possibilities.

The FileOpenDialog and FileSaveDialog are based on the same FileDialog class. This class does not allow filter on drives. You can find a possible workaround in this thread: WPF SaveFileDialog - Restrict Drives

like image 99
Eike B Avatar answered Mar 22 '26 12:03

Eike B



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!