using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace ÇİZGİ_KARE_1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
Graphics g;
private void
Form1_Load(object sender, EventArgs e)
{
}
private void
button1_Click(object sender, EventArgs e)
{
Pen kalem = new Pen(Color.Red,
5);
g
= this.CreateGraphics();
g.DrawRectangle(kalem, 1, 1, 50, 50);
g.DrawRectangle(kalem, 51, 51, 50, 50);
g.DrawRectangle(kalem, 101, 101, 50, 50);
g.DrawRectangle(kalem, 151, 151, 50, 50);
g.DrawRectangle(kalem, 201, 201, 50, 50);
g.DrawRectangle(kalem, 251, 251, 50, 50);
}
}
}
Hiç yorum yok:
Yorum Gönder