VB version here.

You can work with matrices to transform the coordinate system of a Graphics object but it is often more intuitive to call the TranslateTransform, RotateTransform and ScaleTransform methods. Here's a demo that uses the first two of those methods to draw a clock face. To see this code in action, create a new Windows Forms Application project, add a PictureBox and a Timer to the form and then set the Enabled property of the Timer to True. You may also like to set the Dock property of the PictureBox to Fill or else snap it to each edge and then set the Anchor property to all sides. Add the following code and run the application and you'll see a simple analogue clock showing the current time.
csharp Code:
  1. private const int CLEARANCE = 10;
  2. private const int MIN_DIAMETER = 50;
  3. private const int DEGREES_PER_HOUR = 30;
  4. private const int DEGREES_PER_MINUTE = 6;
  5. private const int DEGREES_PER_SECOND = 6;
  6.  
  7. private readonly Pen hourPen = Pens.Black;
  8. private readonly Pen minutePen = Pens.Blue;
  9. private readonly Pen secondPen = Pens.Red;
  10.  
  11. private float GetHourAngle(DateTime currentTime)
  12. {
  13.     return (currentTime.Hour % 12 + (currentTime.Minute + currentTime.Second / 60F) / 60F) * DEGREES_PER_HOUR;
  14. }
  15.  
  16. private float GetMinuteAngle(DateTime currentTime)
  17. {
  18.     return (currentTime.Minute + currentTime.Second / 60F) * DEGREES_PER_MINUTE;
  19. }
  20.  
  21. private void pictureBox1_Paint(object sender, PaintEventArgs e)
  22. {
  23.     var diameter = Math.Max(MIN_DIAMETER,
  24.                             Math.Min(pictureBox1.Width,
  25.                                      pictureBox1.Height) - 2 * CLEARANCE);
  26.  
  27.     // Ensure that the diameter is an odd number so there is a definite centre.
  28.     diameter = diameter % 2 == 0 ? diameter + 1 : diameter;
  29.  
  30.     var g = e.Graphics;
  31.  
  32.     // Draw the clock outline.
  33.     g.DrawEllipse(Pens.Black, CLEARANCE, CLEARANCE, diameter, diameter);
  34.  
  35.     // Shift the origin to the centre of the circle to make it easy to draw radial lines.
  36.     g.TranslateTransform(CLEARANCE + diameter / 2 + 1, CLEARANCE + diameter / 2 + 1);
  37.  
  38.     // Draw the hour and minute increments.
  39.     for (var a = DEGREES_PER_MINUTE; a <= 360; a += DEGREES_PER_MINUTE)
  40.     {
  41.         g.RotateTransform(DEGREES_PER_MINUTE);
  42.  
  43.         if (a % DEGREES_PER_HOUR == 0)
  44.         {
  45.             // Hour markers are the length of the clearance.
  46.             g.DrawLine(hourPen, 0, CLEARANCE - diameter / 2, 0, -diameter / 2);
  47.         }
  48.         else
  49.         {
  50.             // Minute markers are the half the length of the clearance.
  51.             g.DrawLine(minutePen, 0, (CLEARANCE - diameter) / 2, 0, -diameter / 2);
  52.         }
  53.     }
  54.  
  55.     var currentTime = DateTime.Now;
  56.     var hourAngle = GetHourAngle(currentTime);
  57.     var minuteAngle = GetMinuteAngle(currentTime);
  58.     var secondAngle = currentTime.Second * DEGREES_PER_SECOND;
  59.  
  60.     var fullHandLength = diameter / 2 - CLEARANCE;
  61.  
  62.     // The hands are drawn vertically upward in relation to the transformed coordinate system so the Y coordinate of the end-point is negative.
  63.  
  64.     // Draw the minute hand first.
  65.     g.RotateTransform(minuteAngle);
  66.     g.DrawLine(minutePen, 0, 0, 0, -fullHandLength);
  67.     g.RotateTransform(-minuteAngle);
  68.  
  69.     // Draw the hour hand over the minute hand.
  70.     g.RotateTransform(hourAngle);
  71.     g.DrawLine(hourPen, 0, 0, 0, -fullHandLength / 2);
  72.     g.RotateTransform(-hourAngle);
  73.  
  74.     // Draw the second hand over all others.
  75.     g.RotateTransform(secondAngle);
  76.     g.DrawLine(secondPen, 0, 0, 0, -fullHandLength);
  77.     g.RotateTransform(-secondAngle);
  78. }
  79.  
  80. private void pictureBox1_SizeChanged(object sender, EventArgs e)
  81. {
  82.     pictureBox1.Invalidate();
  83. }
  84.  
  85. private void timer1_Tick(object sender, EventArgs e)
  86. {
  87.     pictureBox1.Invalidate();
  88. }