how do I programmatically close a form?
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.
how do I programmatically close a form?
I've just learned how to open one with call-MyForm_pff, but how do I close it when I'm finished with it? me.close() aint it.
Re: how do I programmatically close a form?
Inside the form script you need to use the form variable in order to close it:
The only time you can use $this to determine the caller of an event block.
David
PowerShell Code
Double-click the code block to select all.$form1.Close()PowerShell doesn't support classes and thus "me" or "this" doesn't work. They normally reference the instance of the class.
The only time you can use $this to determine the caller of an event block.
David
David
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.