Multi Form Closing from main form

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
Forum rules
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 4 months and 1 week old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
CKMHC-it
Posts: 9
Last visit: Mon Dec 02, 2024 2:05 pm

Multi Form Closing from main form

Post by CKMHC-it »

Product, version and build: 5.8.246
Operating system: windows 10
PowerShell version(s): 7.4.4

I want to close the PleaseWait form after the data is gathered but I can not find how to close that form from the main form see code

$Users = Get-ADUser -filter { Enabled -eq $true } -SearchScope 1 -SearchBase "OU=CK Users,DC=ckmhc,DC=org" -Properties * | Select-Object -Property name,
SamAccountName, Description
$DataTable = ConvertTo-DataTable -InputObject ($users)
Show-PleaseWait_psf
$datagridview1.DataSource = $DataTable

I want to close the pleasWait form here
User avatar
brittneyr
Site Admin
Posts: 1821
Last visit: Wed Dec 04, 2024 11:27 am
Answers: 45
Been upvoted: 34 times

Re: Multi Form Closing from main form

Post by brittneyr »

The form is being shown as a dialog. You can only close this form within your PleaseWait form.

You may find the following article helpful:
https://www.sapien.com/blog/2022/01/04/ ... ll-studio/
Brittney
SAPIEN Technologies, Inc.
This topic is 4 months and 1 week old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.