Hello,
I am trying to figure out how to close the main form or hide it when the child form opens, I am using my main form as a user agreement and when they click accept I have it opening the child form but I would like for the user agreement to close so it is not in the way. I thought if I told it told it to close when the I agree button was clicked that, that would work but it did not. Any help?
$MainForm_Load={
#TODO: Place custom script here
}
$buttonIAgree_Click = {
$MainForm.Close()
if ((Show-ChildForm_psf) -eq 'OK')
{
}
}
Close Main Form When Child Form Opens
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.