1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# Crear un dibujo que contenga dos círculos $pen = [Drawing.Pen]::new("red",5) $form = [System.Windows.Forms.Form]@{ Text = 'Mi formulario' Width = 500 Height = 550 } $brush = [System.Drawing.SolidBrush]::new("black") $form.add_paint({ $form.createGraphics().FillEllipse($brush,[System.Drawing.RectangleF]::new(60,35, 100,100)) $form.createGraphics().FillEllipse($brush,[System.Drawing.RectangleF]::new(160,35, 100,100)) }) $form.ShowDialog() |