Hi All,
need help
i created simple popup form and its working ok on local computer
function Create-SplashForm
{
# Form object
[Reflection.Assembly]::LoadWithPartialName('System') | Out-Null
[Reflection.Assembly]::LoadWithPartialName('System.Windows.Forms') | Out-Null
[Reflection.Assembly]::LoadWithPartialName('System.Drawing') | Out-Null
[Reflection.Assembly]::LoadWithPartialName('mscorlib') | Out-Null
[Reflection.Assembly]::LoadWithPartialName('System.Data') | Out-Null
[Reflection.Assembly]::LoadWithPartialName('System.IO') | Out-Null
[Reflection.Assembly]::LoadWithPartialName('Microsoft.VisualBasic') | Out-Null
[reflection.assembly]::LoadWithPartialName('System.DirectoryServices') | Out-Null
$script:frmMessage = New-Object System.Windows.Forms.Form
$lblTitle = New-Object System.Windows.Forms.Label
$objImage = New-Object System.Windows.Forms.PictureBox
$lblTextDown = New-Object System.Windows.Forms.Label
$InitialFormWindowState = New-Object System.Windows.Forms.FormWindowState
$frmMessage.BackColor = [System.Drawing.Color]::FromArgb(255,255,255,255)
$System_Drawing_Size = New-Object System.Drawing.Size
$System_Drawing_Size.Height = 550
$System_Drawing_Size.Width = 500
$frmMessage.ClientSize = $System_Drawing_Size
$frmMessage.DataBindings.DefaultDataSourceUpdateMode = 0
$frmMessage.Name = 'frmMessage'
$frmMessage.StartPosition = 1
$frmMessage.MinimizeBox = 0
$frmMessage.MaximizeBox = 0
$frmMessage.Text = "Test form !!!"
# Save form
#InitialFormWindowState = $frmMessage.WindowState
#frmMessage.add_Load($OnLoadForm_StateCorrection)
# Show form
#$frmMessage.Show({ TopMost = true })| Out-Null
$frmMessage.Add_Shown({$frmMessage.Activate()})
$frmMessage.ShowDialog() | Out-Null
}
and to run:
Create-SplashForm
Start-Sleep -seconds 20
$frmMessage.Close()
i need help , how i can show this popup on remote comp. list
Thanks