Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Pen blackPen = new Pen(Color.Black, 1);
- Rectangle rect = new Rectangle(0, 0, panel1.Width -1, panel1.Height -1);
- e.Graphics.DrawRectangle(blackPen, rect);
- // int PointY = panel1.Height / 6;
- for (int i = 1; i < 7; i++)
- {
- int GridWith = panel1.Width / 6;
- GridWith = GridWith * i;
- e.Graphics.DrawLine(blackPen, GridWith, 0, GridWith, panel1.Height);
- }
- for (int i = 0; i < 7; i++)
- {
- int GridHeight = panel1.Height / 6;
- GridHeight = GridHeight * i;
- e.Graphics.DrawLine(blackPen, 0, GridHeight, panel1.Width, GridHeight);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement