-Gizle-
-Gizle-
Anasayfa   En Yeni 50    Kod En Popüler 50 Kod Sende Yaz Kod Test Et Bize Ulaşın  
Arama


Kategoriler
  »  ADO.NET - ADO - (2)
  »  ASP - (56)
  »  ASP.NET - (19)
  »  C # - (5)
  »  C ++ - (28)
  »  CGI - (3)
  »  COMPONENT - (5)
  »  DATABASE - (6)
  »  DELPHI - (11)
  »  FLASH - (18)
  »  HTML - (443)
  »  JAVA - JSP - (45)
  »  JAVA SCRIPT - (133)
  »  PASCAL - (38)
  »  PERL - (11)
  »  PHP - (25)
  »  VISUAL BASIC - (30)
  »  VISUAL BASIC.NET - (6)
  »  WML - (9)
  »  XML - (2)

Reklam

Hazir-Kod Merkezinde her türlü web ve program kodlari mevcuttur. Sitene ekle, html, asp, php, kodlar, kod, hazirkod, hazir kod, hazirkod, hazir kod, Ado.net - Ado, Asp, Asp.net, C # , C ++ , Cgi, Componenet, Database, Delphi, Flash, Html, Java - Jsp, JAVA Script, Pascal, Perl, Php, Visual Basic, Visual Basic.net, Wml, Xml, html kod, htmlkod, html kodlari, html kodu, logo, logolari, resim, resimleri, pictures, picture Hazir-Kod Merkezinde her türlü web ve program kodlari mevcuttur. Sitene ekle, html, asp, php, kodlar, kod, hazirkod, hazir kod, hazirkod, hazir kod, Ado.net - Ado, Asp, Asp.net, C # , C ++ , Cgi, Componenet, Database, Delphi, Flash, Html, Java - Jsp, JAVA Script, Pascal, Perl, Php, Visual Basic, Visual Basic.net, Wml, Xml, html kod, htmlkod, html kodlari, html kodu, logo, logolari, resim, resimleri, pictures, picture Hazir-Kod Merkezinde her türlü web ve program kodlari mevcuttur. Sitene ekle, html, asp, php, kodlar, kod, hazirkod, hazir kod, hazirkod, hazir kod, Ado.net - Ado, Asp, Asp.net, C # , C ++ , Cgi, Componenet, Database, Delphi, Flash, Html, Java - Jsp, JAVA Script, Pascal, Perl, Php, Visual Basic, Visual Basic.net, Wml, Xml, html kod, htmlkod, html kodlari, html kodu, logo, logolari, resim, resimleri, pictures, picture Hazir-Kod Merkezinde her türlü web ve program kodlari mevcuttur. Sitene ekle, html, asp, php, kodlar, kod, hazirkod, hazir kod, hazirkod, hazir kod, Ado.net - Ado, Asp, Asp.net, C # , C ++ , Cgi, Componenet, Database, Delphi, Flash, Html, Java - Jsp, JAVA Script, Pascal, Perl, Php, Visual Basic, Visual Basic.net, Wml, Xml, html kod, htmlkod, html kodlari, html kodu, logo, logolari, resim, resimleri, pictures, picture Hazir-Kod Merkezinde her türlü web ve program kodlari mevcuttur. Sitene ekle, html, asp, php, kodlar, kod, hazirkod, hazir kod, hazirkod, hazir kod, Ado.net - Ado, Asp, Asp.net, C # , C ++ , Cgi, Componenet, Database, Delphi, Flash, Html, Java - Jsp, JAVA Script, Pascal, Perl, Php, Visual Basic, Visual Basic.net, Wml, Xml, html kod, htmlkod, html kodlari, html kodu, logo, logolari, resim, resimleri, pictures, picture Hazir-Kod Merkezinde her türlü web ve program kodlari mevcuttur. Sitene ekle, html, asp, php, kodlar, kod, hazirkod, hazir kod, hazirkod, hazir kod, Ado.net - Ado, Asp, Asp.net, C # , C ++ , Cgi, Componenet, Database, Delphi, Flash, Html, Java - Jsp, JAVA Script, Pascal, Perl, Php, Visual Basic, Visual Basic.net, Wml, Xml, html kod, htmlkod, html kodlari, html kodu, logo, logolari, resim, resimleri, pictures, picture Hazir-Kod Merkezinde her türlü web ve program kodlari mevcuttur. Sitene ekle, html, asp, php, kodlar, kod, hazirkod, hazir kod, hazirkod, hazir kod, Ado.net - Ado, Asp, Asp.net, C # , C ++ , Cgi, Componenet, Database, Delphi, Flash, Html, Java - Jsp, JAVA Script, Pascal, Perl, Php, Visual Basic, Visual Basic.net, Wml, Xml, html kod, htmlkod, html kodlari, html kodu, logo, logolari, resim, resimleri, pictures, picture Hazir-Kod Merkezinde her türlü web ve program kodlari mevcuttur. Sitene ekle, html, asp, php, kodlar, kod, hazirkod, hazir kod, hazirkod, hazir kod, Ado.net - Ado, Asp, Asp.net, C # , C ++ , Cgi, Componenet, Database, Delphi, Flash, Html, Java - Jsp, JAVA Script, Pascal, Perl, Php, Visual Basic, Visual Basic.net, Wml, Xml, html kod, htmlkod, html kodlari, html kodu, logo, logolari, resim, resimleri, pictures, picture

Klasik duvar saati
Hazir-Kod Tarafından 05.01.2010 Tarihinde Eklenmiş, 484 Kere Okunmuş.
Açıklama : Klasik duvar saati
<!---hazir-kod.net kod başlangıc--->
using System;
using System.Windows.Forms;
using System.Drawing;

class MyForm : Form
{
MyForm ()
{
Text = "Clock";
SetStyle (ControlStyles.ResizeRedraw, true);
}

protected override void OnPaint (PaintEventArgs e)
{
SolidBrush red = new SolidBrush (Color.Red);
SolidBrush white = new SolidBrush (Color.White);
SolidBrush blue = new SolidBrush (Color.Blue);

// Initialize the transformation matrix
InitializeTransform (e.Graphics);

// Draw squares denoting hours on the clock face
for (int i=0; i<12; i++) {
e.Graphics.RotateTransform (30.0f);
e.Graphics.FillRectangle (white, 85, -5, 10, 10);
}

// Get the current time
DateTime now = DateTime.Now;
int minute = now.Minute;
int hour = now.Hour % 12;

// Reinitialize the transformation matrix
InitializeTransform (e.Graphics);

// Draw the hour hand
e.Graphics.RotateTransform ((hour * 30) + (minute / 2));
DrawHand (e.Graphics, blue, 40);

// Reinitialize the transformation matrix
InitializeTransform (e.Graphics);

// Draw the minute hand
e.Graphics.RotateTransform (minute * 6);
DrawHand (e.Graphics, red, 80);

// Dispose of the brushes
red.Dispose ();
white.Dispose ();
blue.Dispose ();
}

void DrawHand (Graphics g, Brush brush, int length)
{
// Draw a hand that points straight up, and let
// RotateTransform put it in the proper orientation
Point[> points = new Point[4>;
points[0>.X = 0;
points[0>.Y = -length;
points[1>.X = -12;
points[1>.Y = 0;
points[2>.X = 0;
points[2>.Y = 12;
points[3>.X = 12;
points[3>.Y = 0;

g.FillPolygon (brush, points);
}

void InitializeTransform (Graphics g)
{
// Apply transforms that move the origin to the center
// of the form and scale all output to fit the form's width
// or height
g.ResetTransform ();
g.TranslateTransform (ClientSize.Width / 2,
ClientSize.Height / 2);
float scale = System.Math.Min (ClientSize.Width,
ClientSize.Height) / 200.0f;
g.ScaleTransform (scale, scale);
}

static void Main ()
{
Application.Run (new MyForm ());
}
}

<!---hazir-kod.net kod bitişi--->

Anasayfa   Bize Ulaşın    © 2008 Hazir Kod Kodlama - Türkiye