Code that worked perfectly on Windows 7 and Windows server 2012 R2 does not work on Windows 10.
I have a FolderBrowserDialog button but clicking it does nothing on Windows 10.
Is there another way to browse for a folder that works in Windows 10?
Windows 10 FolderBrowserDialog and FolderBrowserModernDialog not working
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.
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.
- peter@doxadvisors.com
- Posts: 2
- Last visit: Sun Jan 06, 2019 7:29 am
Re: Windows 10 FolderBrowserDialog and FolderBrowserModernDialog not working
Works fine for me on all versions of Windows.
Here is an example.
Here is an example.
- Attachments
-
- Test-Folder rowserDialog.psf
- (30.17 KiB) Downloaded 100 times
Re: Windows 10 FolderBrowserDialog and FolderBrowserModernDialog not working
Make sure you are running the script in STA mode otherwise the dialog will not appear.
David
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
- peter@doxadvisors.com
- Posts: 2
- Last visit: Sun Jan 06, 2019 7:29 am
Re: Windows 10 FolderBrowserDialog and FolderBrowserModernDialog not working
Thanks for the quick response and sample code.
It is indeed now working on a Windows 10 Environment. I just have to test on the client machine that it was not working on.
Glad to have the reassurance that it does indeed work on Windows 10.
It is indeed now working on a Windows 10 Environment. I just have to test on the client machine that it was not working on.
Glad to have the reassurance that it does indeed work on Windows 10.
Re: Windows 10 FolderBrowserDialog and FolderBrowserModernDialog not working
Glad to hear you have the answer. Some controls do require STA only which is the default but it is easy to change it accidentally.