1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
#Number one #Create pen $mypen = new-object Drawing.Pen red $mypen.width = 10 $form = New-Object Windows.Forms.Form $formGraphics = $form.createGraphics() #Drawing perpendicular line #10,10 #| #| #| #| #| #| #| #10,200 #Create coordinates of points that define line #Draw line to screen $form.add_paint({$formGraphics.DrawLine($mypen, 10, 10, 10, 200)}) $form.ShowDialog() |