1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15:
| pnlZeichnen.Refresh(); pnlZeichnen.Height = this.Height - 80; pnlZeichnen.Width = this.Width - 10; pnlZeichnen.Left = 10; pnlZeichnen.Top = 10; cmdZeichnen.Top = this.Height - 65; cmdZeichnen.Left = 10;
Graphics g; g = pnlZeichnen.CreateGraphics(); Pen schwarzstift = new Pen(Color.Black, 3); Pen rotstift = new Pen(Color.Red, 1); g.DrawLine(schwarzstift, 0, pnlZeichnen.Height / 2, pnlZeichnen.Width, pnlZeichnen.Height / 2); g.DrawLine(schwarzstift, pnlZeichnen.Width / 2, 0, pnlZeichnen.Width / 2, pnlZeichnen.Height); |