Hi there,
quick question - i think its quick - but i was not able to find a proper answear.
I do have a form project and everytime when i close the form with the Close Icon (x) (not a close button, just the red windows x in the upper right corner ) i get an messagebox with "Cancel" and an "OK" button:
How can i suppress this message?
Thanks, Raphael
Messagebox after Close (x)
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.
- Alexander Riedel
- Posts: 8479
- Last visit: Thu Mar 28, 2024 9:29 am
- Been upvoted: 37 times
Re: Messagebox after Close (x)
Search for "Cancel" in your script. Is it somewhere in there?
Alexander Riedel
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
Re: Messagebox after Close (x)
No nothing - just one but that is used in an if statement.
Strange thing - i have a check in my startup.pss if a module is installed - and when the module is not installed a messagebox is displayed and when i close this message box with the (X) i get "OK":
Strange thing - i have a check in my startup.pss if a module is installed - and when the module is not installed a messagebox is displayed and when i close this message box with the (X) i get "OK":
Re: Messagebox after Close (x)
Ok, it also happens with a Quit Button with "$MyForm.close()" - strange ..
Re: Messagebox after Close (x)
Nevermind i, might, have found the solution:
In the startup.pss i called the MainForm only with "Show-MainForm_psf" - i checked the templates and i changed that to:
Now its working
In the startup.pss i called the MainForm only with "Show-MainForm_psf" - i checked the templates and i changed that to:
Code: Select all
if ((Show-MainForm_psf) -eq 'OK')
{
}