Page 1 of 1

Multi Form Closing from main form

Posted: Wed Jul 24, 2024 10:25 am
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

Re: Multi Form Closing from main form

Posted: Thu Jul 25, 2024 9:25 am
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/