<div><div align="center">Modern ve Flat tasarımıyla şık bir masaüstü analog saati.

1-)Projenize ilk olarak bir timer kontrolü ekleyin, sonra tick eventini oluşturun ve gerekli timer kodlarını oraya yazın. Ve ayrıyetten bir picturebox da ekleyin, sizemode zoom olsun.

Programdan bir görüntü =>



Kodlar =>

<div style="margin:20px; margin-top:5px"> Kod:
using System;
using System.Drawing;
using System.Windows.Forms;

namespace saat
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
//bu ölçüler gayet güzel ama siz kendi zevkinize göre editleyebilirsiniz.
int genislik = 300, yukseklik = 300, saniye = 140, yelkovan = 110, akrep = 80, merkezX, merkezY;
Bitmap bmp;
Graphics grafik;
private void timer1_Tick(object sender, EventArgs e)
{
using (grafik = Graphics.FromImage(bmp))
{

int saniye_ = DateTime.Now.Second;
int dakika = DateTime.Now.Minute;
int saat = DateTime.Now.Hour;

int[] myKoordianate = new int[2];

grafik.Clear(SystemColors.Control);

grafik.DrawEllipse(new Pen(Color.Black, 1f), 0, 0, genislik, yukseklik);

grafik.DrawString("12", new Font("Ariel", 12), Brushes.Black, new PointF(140, 3));
grafik.DrawString("1", new Font("Ariel", 12), Brushes.Black, new PointF(218, 22));
grafik.DrawString("2", new Font("Ariel", 12), Brushes.Black, new PointF(263, 70));
grafik.DrawString("3", new Font("Ariel", 12), Brushes.Black, new PointF(285, 140));
grafik.DrawString("4", new Font("Ariel", 12), Brushes.Black, new PointF(263, 212));
grafik.DrawString("5", new Font("Ariel", 12), Brushes.Black, new PointF(218, 259));
grafik.DrawString("6", new Font("Ariel", 12), Brushes.Black, new PointF(142, 279));
grafik.DrawString("7", new Font("Ariel", 12), Brushes.Black, new PointF(70, 259));
grafik.DrawString("8", new Font("Ariel", 12), Brushes.Black, new PointF(22, 212));
grafik.DrawString("9", new Font("Ariel", 12), Brushes.Black, new PointF(1, 140));
grafik.DrawString("10", new Font("Ariel", 12), Brushes.Black, new PointF(22, 70));
grafik.DrawString("11", new Font("Ariel", 12), Brushes.Black, new PointF(70, 22));

myKoordianate = saniyeDakika(saniye_, saniye);
grafik.DrawLine(new Pen(Color.Red, 1f), new Point(merkezX, merkezY), new Point(myKoordianate[0], myKoordianate[1]));

myKoordianate = saniyeDakika(dakika, yelkovan);
grafik.DrawLine(new Pen(Color.Black, 2f), new Point(merkezX, merkezY), new Point(myKoordianate[0], myKoordianate[1]));

myKoordianate = akrepKoordianat(saat % 12, dakika, akrep);
grafik.DrawLine(new Pen(Color.Black, 3f), new Point(merkezX, merkezY), new Point(myKoordianate[0], myKoordianate[1]));

pictureBox1.Image = bmp;

Text = "Masaüstü Saati - " + saat + ":" + dakika + ":" + saniye_;
}
}

private void Form1_Load(object sender, EventArgs e)
{
//ORTALA
bmp = new Bitmap(genislik + 1, yukseklik + 1);
merkezX = genislik / 2;
merkezY = yukseklik / 2;
}
//Saniye ve yelkovan-ın koordianatlarını hesapla.
private int[] saniyeDakika(int degerParam, int uzunlukParam)
{
var koordinatlar = new int[2];
degerParam *= 6; //Her dakika ve saniye 6 derece

if (degerParam >= 0 && degerParam