*** Please fill in the fields below. If you leave fields empty or specify 'latest' rather than the actual version your answer will be delayed as we will be forced to ask you for this information. ***
Product, version and build:
32 or 64 bit version of product: PowerShell Studio 2017 v5.4.145 x64
Operating system:
32 or 64 bit OS: Win 10 Pro x64
*** Please add details and screenshots as needed below. ***
When running the form1_Shown event handler I am getting unexpected results. According to the MSDN the form_Shown event handler for a form Occurs whenever the form is first displayed. However, With the following code:
Code: Select all
$form1_Shown = {
sleep -Milliseconds 3000
[void][System.Windows.Forms.MessageBox]::Show('The application could not be started. Please contract your IT administator', 'Error')
}
Should I be using a different event for this if the end Goal is to have the form displayed to the user wait three seconds and then have the MessageBox appear?