#region ScriptForm Designer (Created with Admin Script Editor trial edition) #region Constructor [void][System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms") [void][System.Reflection.Assembly]::LoadWithPartialName("System.Drawing") #endregion #region Post-Constructor Custom Code #endregion #region Form Creation #Warning: It is recommended that changes inside this region be handled using the ScriptForm Designer. #When working with the ScriptForm designer this region and any changes within may be overwritten. #~~< Form1 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ $Form1 = New-Object System.Windows.Forms.Form $Form1.ClientSize = New-Object System.Drawing.Size(463, 418) $Form1.Text = "Form1" #~~< MonthCalendar1 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ $MonthCalendar1 = New-Object System.Windows.Forms.MonthCalendar $MonthCalendar1.Location = New-Object System.Drawing.Point(237, 93) $MonthCalendar1.TabIndex = 8 #~~< CheckedListBox1 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ $CheckedListBox1 = New-Object System.Windows.Forms.CheckedListBox $CheckedListBox1.FormattingEnabled = $true $CheckedListBox1.Location = New-Object System.Drawing.Point(237, 350) $CheckedListBox1.Size = New-Object System.Drawing.Size(171, 49) $CheckedListBox1.TabIndex = 10 #~~< ComboBox1 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ $ComboBox1 = New-Object System.Windows.Forms.ComboBox $ComboBox1.FormattingEnabled = $true $ComboBox1.Location = New-Object System.Drawing.Point(237, 292) $ComboBox1.Size = New-Object System.Drawing.Size(171, 21) $ComboBox1.TabIndex = 9 $ComboBox1.Text = "" #~~< DateTimePicker1 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ $DateTimePicker1 = New-Object System.Windows.Forms.DateTimePicker $DateTimePicker1.Location = New-Object System.Drawing.Point(232, 15) $DateTimePicker1.Size = New-Object System.Drawing.Size(192, 20) $DateTimePicker1.TabIndex = 6 #~~< ListView1 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ $ListView1 = New-Object System.Windows.Forms.ListView $ListView1.Location = New-Object System.Drawing.Point(22, 214) $ListView1.Size = New-Object System.Drawing.Size(113, 99) $ListView1.TabIndex = 5 $ListView1.Text = "ListView1" $ListView1.UseCompatibleStateImageBehavior = $false $ListView1.View = [System.Windows.Forms.View]::Details #~~< ColumnHeader1 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ $ColumnHeader1 = New-Object System.Windows.Forms.ColumnHeader $ColumnHeader1.Text = "ColumnHeader" #~~< ColumnHeader2 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ $ColumnHeader2 = New-Object System.Windows.Forms.ColumnHeader $ColumnHeader2.Text = "ColumnHeader" $ListView1.Columns.AddRange([System.Windows.Forms.ColumnHeader[]](@($ColumnHeader1, $ColumnHeader2))) #~~< LinkLabel1 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ $LinkLabel1 = New-Object System.Windows.Forms.LinkLabel $LinkLabel1.Location = New-Object System.Drawing.Point(22, 350) $LinkLabel1.Size = New-Object System.Drawing.Size(113, 23) $LinkLabel1.TabIndex = 4 $LinkLabel1.TabStop = $true $LinkLabel1.Text = "LinkLabel1" #~~< RadioButton1 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ $RadioButton1 = New-Object System.Windows.Forms.RadioButton $RadioButton1.Location = New-Object System.Drawing.Point(22, 115) $RadioButton1.Size = New-Object System.Drawing.Size(113, 51) $RadioButton1.TabIndex = 3 $RadioButton1.TabStop = $true $RadioButton1.Text = "RadioButton1" $RadioButton1.UseVisualStyleBackColor = $true #~~< ProgressBar1 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ $ProgressBar1 = New-Object System.Windows.Forms.ProgressBar $ProgressBar1.Location = New-Object System.Drawing.Point(22, 172) $ProgressBar1.Size = New-Object System.Drawing.Size(113, 16) $ProgressBar1.TabIndex = 2 $ProgressBar1.Text = "" #~~< CheckBox1 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ $CheckBox1 = New-Object System.Windows.Forms.CheckBox $CheckBox1.Location = New-Object System.Drawing.Point(22, 48) $CheckBox1.Size = New-Object System.Drawing.Size(113, 76) $CheckBox1.TabIndex = 1 $CheckBox1.Text = "CheckBox1" $CheckBox1.UseVisualStyleBackColor = $true #~~< Button1 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ $Button1 = New-Object System.Windows.Forms.Button $Button1.Location = New-Object System.Drawing.Point(22, 12) $Button1.Size = New-Object System.Drawing.Size(113, 30) $Button1.TabIndex = 0 $Button1.Text = "Button1" $Button1.UseVisualStyleBackColor = $true $Form1.Controls.Add($MonthCalendar1) $Form1.Controls.Add($CheckedListBox1) $Form1.Controls.Add($ComboBox1) $Form1.Controls.Add($DateTimePicker1) $Form1.Controls.Add($ListView1) $Form1.Controls.Add($LinkLabel1) $Form1.Controls.Add($RadioButton1) $Form1.Controls.Add($ProgressBar1) $Form1.Controls.Add($CheckBox1) $Form1.Controls.Add($Button1) #endregion #region Custom Code #endregion #region Event Loop function Main{ [System.Windows.Forms.Application]::EnableVisualStyles() [System.Windows.Forms.Application]::Run($Form1) } #endregion #endregion #region Event Handlers Main #This call must remain below all other event functions #endregion # ======================================================== # # Script Information # # Title: # Author: EricSloof-PC\Eric Sloof # Originally created: 24-8-2008 - 11:46:37 # Original path: C:\Users\Eric Sloof\Documents\AdminScriptEditor\untitled.ps1 # Description: # # ========================================================