I was trying to read this code from this link
http://stackoverflow.com/questions/14527832/powershell-how-to-invoke-a-checkbox-windows-with-multiple-choice
in particular this part of the code
$handler_button1_Click=
{
$listBox1.Items.Clear();
if ($checkBox1.Checked) { $listBox1.Items.Add( "Checkbox 1 is checked" ) }
if ($checkBox2.Checked) { $listBox1.Items.Add( "Checkbox 2 is checked" ) }
if ($checkBox3.Checked) { $listBox1.Items.Add( "Checkbox 3 is checked" ) }
if ( !$checkBox1.Checked -and !$checkBox2.Checked -and !$checkBox3.Checked ) { $listBox1.Items.Add("No CheckBox selected....")}
}
$OnLoadForm_StateCorrection=
{#Correct the initial state of the form to prevent the .Net maximized form issue
$form1.WindowState = $InitialFormWindowState
}
both of these lines below seem to be trying set a variable to items in brakets. What is going on there in a general sense, not specifically about the form.
$handler_button1_Click=
$OnLoadForm_StateCorrection=