Save File Dialog only once

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
androidandparanoid
Posts: 1
Joined: Mon Jun 30, 2014 6:05 am

Save File Dialog only once

Post by androidandparanoid » Wed Sep 03, 2014 11:51 am

Good day

I´m trying to create a Form that logs errors or successes when user checks a box. Save file dialog works fine, my problem is that I just want it to prompt once, instead every time you click on run it prompts for a new file. Where do I need to declare the Save File dialog to run only once?

Your help is greatly appreciated. I´m attaching my code for your review.
Attachments
SaveFileDialog.ps1
(10.93 KiB) Downloaded 257 times

Locked