Advertisement
Guest User

Untitled

a guest
Dec 12th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. public void panel1_Paint_1(object sender, PaintEventArgs e)
  2. {
  3. Pen blackPen = new Pen(Brushes.Black);
  4.  
  5. for (int y = 0; y <= 6; ++y)
  6. {
  7. e.Graphics.DrawLine(blackPen, 0, y * 80, 6 * 80, y * 80);
  8. }
  9.  
  10. for (int x = 0; x <= 6; ++x)
  11. {
  12. e.Graphics.DrawLine(blackPen, x * 80, 0, x * 80, 6 * 80);
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement