public static void DrawDesignTimeLine(Graphics g, int x1, int y1, int x2, int y2) { var p = new Pen(SystemColors.ControlDarkDark) {DashOffset = 10, DashStyle = DashStyle.Dash}; g.DrawLine(p, x1, y1, x2, y2); p.Dispose(); }