Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Add JPG to form

$
0
0

Hi,

here is a basic form code :

Add-Type -AssemblyName System.Windows.Forms

$Label = New-Object System.Windows.Forms.Label

$Form = New-Object system.Windows.Forms.Form

$Form.Text="Date"

$Form.AutoSize = $True

$Form.MinimizeBox = $False

$Form.MaximizeBox = $False

$Form.WindowState = "Normal"

$Form.StartPosition = "CenterScreen"

 

$Form.ShowDialog()

how can I add a JPG\ICO to the form? and how determine his size and location on the form?
Thanks
Lior

Viewing all articles
Browse latest Browse all 6937

Trending Articles