*** Please fill in the fields below. If you leave fields empty or specify 'latest' rather than the actual version your answer will be delayed as we will be forced to ask you for this information. ***
Product, version and build: Powershell Studio 2022 5.8.213
Operating system: Windows 11 Pro
PowerShell version(s): 5.1.22621.963
*** Please add details and screenshots as needed below. ***
I have a form which works exactly as I need, the only thing I want to add to it, at least right now, is a confirmation on exit popupbox.
I have an exit button in the bottom right corner of the form, it is isolated from all other buttons and controls but I have had people complain they have accidentally clicked it and would like a confimation box to prevent accidental closure.
I don't seem to be able to work out how to do this, I don't have any visible output, there is no box showing any text when users have the form run so I would need to have this confirmation appear as a popup. I tried adding
- $confirmation = Read-Host "Are you Sure You Want To Exit?"
- if ($confirmation -eq 'y')
- $Form.Close()
So is it possible to make a click on the exit button trigger a popup confirmation box?
DO NOT POST LICENSES, KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM