FolderBrowserModernDialog not working in compiled .exe

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.
This topic is 8 years and 2 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: FolderBrowserModernDialog not working in compiled .exe

Post by jvierra »

Did you send an exe only? What was the error? Execution poicy would not cause this issue.
User avatar
tirwin@iot.in.gov
Posts: 40
Last visit: Tue Mar 14, 2017 9:54 am

Re: FolderBrowserModernDialog not working in compiled .exe

Post by tirwin@iot.in.gov »

OK, the following is just a form with a Browse button. But when I compiled it to .exe I checked the "STA Mode" box and when I reopened the "Engine Settings" dialog the check box was still checked. This functionality is not working in my "Original Program". When I check the "STA Mode" box and reopen it. It alw
FolderModernDialog.psf
(10.09 KiB) Downloaded 160 times
ays comes back unchecked. What could be causing this behavior?
User avatar
dan.potter
Posts: 709
Last visit: Wed Nov 14, 2018 11:39 am

Re: FolderBrowserModernDialog not working in compiled .exe

Post by dan.potter »

jvierra wrote:Did you send an exe only? What was the error? Execution poicy would not cause this issue.

yes, it's on page 1.
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: FolderBrowserModernDialog not working in compiled .exe

Post by jvierra »

There is a file in the folder with the PSF called "FolderModernDialog.psf.psbuild" and one called "FolderModernDialog.exe.config". Can you zip both of those and upload them,
User avatar
tirwin@iot.in.gov
Posts: 40
Last visit: Tue Mar 14, 2017 9:54 am

Re: FolderBrowserModernDialog not working in compiled .exe

Post by tirwin@iot.in.gov »

Yes here you are. Again though that one is working.
Dialog.zip
(5.79 KiB) Downloaded 177 times
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: FolderBrowserModernDialog not working in compiled .exe

Post by jvierra »

tirwin@iot.in.gov wrote:Yes here you are. Again though that one is working.
Dialog.zip
Are you saying that this simple version works correctly?

If that is so then copy your original PSF t a new folder and try to build it again after checking the engine and STA mode.
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: FolderBrowserModernDialog not working in compiled .exe

Post by jvierra »

I also asked two different file and you do not end them'
Read my request"

FolderModernDialog.psf.psbuild
FolderModernDialog.exe.config

That is not what you sent.
User avatar
tirwin@iot.in.gov
Posts: 40
Last visit: Tue Mar 14, 2017 9:54 am

Re: FolderBrowserModernDialog not working in compiled .exe

Post by tirwin@iot.in.gov »

is this what you need?
Dialog (2).zip
(951 Bytes) Downloaded 192 times
User avatar
tirwin@iot.in.gov
Posts: 40
Last visit: Tue Mar 14, 2017 9:54 am

Re: FolderBrowserModernDialog not working in compiled .exe

Post by tirwin@iot.in.gov »

Moving all the files to another folder and then recompiling worked. Thanks
User avatar
tirwin@iot.in.gov
Posts: 40
Last visit: Tue Mar 14, 2017 9:54 am

Re: FolderBrowserModernDialog not working in compiled .exe

Post by tirwin@iot.in.gov »

Moving all the files to another folder and then recompiling worked. Thanks
This topic is 8 years and 2 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked