Networkdrives missing in Control set: Textbox browse for folder

Ask questions about creating Graphical User Interfaces (GUI) in PowerShell and using WinForms controls.
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Locked
User avatar
DeKade
Posts: 18
Joined: Sat Feb 11, 2017 7:42 am

Networkdrives missing in Control set: Textbox browse for folder

Post by DeKade » Tue Apr 11, 2017 12:08 am

Product, version and build:
(*** Please do not write "latest" as a version, specify a version number ***)
32 or 64 bit version of product: 64bit
Operating system: Windows 10 Pro
32 or 64 bit OS: 64
PowerShell Version: 5.1.14393.953

DO NOT POST SUBSCRIPTIONS, KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM

All my networkdrives are not visible in the folderbrowserdialog, I only see my local drives.
Can I enable this somehow?

User avatar
DevinL
Site Admin
Posts: 1098
Joined: Mon Aug 17, 2015 2:25 pm

Re: Networkdrives missing in Control set: Textbox browse for folder

Post by DevinL » Tue Apr 11, 2017 7:55 am

[TOPIC MOVED TO POWERSHELL GUIS FORUM BY MODERATOR]
DevinL
SAPIEN Technologies, Inc.

User avatar
DevinL
Site Admin
Posts: 1098
Joined: Mon Aug 17, 2015 2:25 pm

Re: Networkdrives missing in Control set: Textbox browse for folder

Post by DevinL » Tue Apr 11, 2017 7:58 am

This is more of a generic GUI question as opposed to a product specific issue.

Do you happen to run PowerShell Studio as a different user than the one that's used for your network drives?
DevinL
SAPIEN Technologies, Inc.

User avatar
davidc
Posts: 5725
Joined: Thu Aug 18, 2011 4:56 am

Re: Networkdrives missing in Control set: Textbox browse for folder

Post by davidc » Tue Apr 11, 2017 8:12 am

Try swapping out the FolderBrowserDialog with a FolderBrowserModernDialog and see if that makes a difference.
David
SAPIEN Technologies, Inc.

User avatar
jvierra
Posts: 13290
Joined: Tue May 22, 2007 9:57 am
Contact:

Re: Networkdrives missing in Control set: Textbox browse for folder

Post by jvierra » Tue Apr 11, 2017 9:55 am

IF you map drives from n elevated prompt they will not be visible from a normal session. Run your script elevated and you will see the drives.

Locked