FolderBrowserModernDialog doesn't select folder path on first click

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
gutihz
Posts: 38
Joined: Fri Mar 20, 2015 1:42 pm

FolderBrowserModernDialog doesn't select folder path on first click

Post by gutihz »

Hi Everyone,

I have a weird issue... I added a FolderBrowserModernDialog in my project to capture the path. If I select a folder after the dialog opens, it flashes and opens the dialog again inside the folder I selected. If I select another folder or go back and select the same folder, it captures the path.
I attached a very simple example.

Anyone has any ideas why this is happening?


PowerShell Studio 2016 5.2.124
Version of product: 64
Operating system: Windows 7
OS: 64 bit
Attachments
MainForm.psf
(32.41 KiB) Downloaded 51 times

jvierra
Posts: 14550
Joined: Tue May 22, 2007 9:57 am
Contact:

Re: FolderBrowserModernDialog doesn't select folder path on first click

Post by jvierra »

this
Attachments
fberr.png
fberr.png (28.26 KiB) Viewed 763 times

User avatar
gutihz
Posts: 38
Joined: Fri Mar 20, 2015 1:42 pm

Re: FolderBrowserModernDialog doesn't select folder path on first click

Post by gutihz »

Wow! Not sure how I missed that.
Thanks for your help.

Locked