16 Mayıs 2016 Pazartesi

C# ÇİZİM ÇALIŞMASI-OLİMPİYAT HALKASI




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 ÇİZİM_OLİMPİYAT
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        Graphics g;
        private void button1_Click(object sender, EventArgs e)
        {
            Pen kalem = new Pen(Color.Red,5);
            Pen kalem1 = new Pen(Color.Green, 5);
            Pen kalem2 = new Pen(Color.Yellow, 5);
            Pen kalem3 = new Pen(Color.Blue, 5);
            g = this.CreateGraphics();
            g.DrawEllipse(kalem,30,30,150,80);
            g.DrawEllipse(kalem1, 130, 30, 150, 80);
            g.DrawEllipse(kalem2, 230, 30, 150, 80);
            g.DrawEllipse(kalem3, 330, 30, 150, 80);
            label1.Text = "OLİMPİYAT HALKASI";

        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }
    }
}



Hiç yorum yok: