Hi Guys,
I am creating a Clock app in C# using GDI+.
The code I have posted below shows me using a graphics surface and arranging my clock face numbers accordingly in a circle.
g.DrawString("1", new Font("Arial", 14.0f), new SolidBrush(Color.Black), new PointF(240.0f, 50.0f));
g.DrawString("2", new Font("Arial", 14.0f), new SolidBrush(Color.Black), new PointF(290.0f, 95.0f));
g.DrawString("3", new Font("Arial", 14.0f), new SolidBrush(Color.Black), new PointF(310.0f, 160.0f));
g.DrawString("4", new Font("Arial", 14.0f), new SolidBrush(Color.Black), new PointF(290.0f, 228.0f));
g.DrawString("5", new Font("Arial", 14.0f), new SolidBrush(Color.Black), new PointF(240.0f, 275.0f));
g.DrawString("6", new Font("Arial", 14.0f), new SolidBrush(Color.Black), new PointF(175.0f, 295.0f));
g.DrawString("7", new Font("Arial", 14.0f), new SolidBrush(Color.Black), new PointF(110.0f, 277.0f));
g.DrawString("8", new Font("Arial", 14.0f), new SolidBrush(Color.Black), new PointF(60.0f, 230.0f));
g.DrawString("9", new Font("Arial", 14.0f), new SolidBrush(Color.Black), new PointF(40.0f, 165.0f));
g.DrawString("10", new Font("Arial", 14.0f), new SolidBrush(Color.Black), new PointF(50.0f, 100.0f));
g.DrawString("11", new Font("Arial", 14.0f), new SolidBrush(Color.Black), new PointF(95.0f, 50.0f));
g.DrawString("12", new Font("Arial", 14.0f), new SolidBrush(Color.Black), new PointF(165.0f, 30.0f));
My question to you all is:
How do I keep these numbers in the same order with equal spacing according to the Windows Form when I resize the window using my resize event?
This code Is currently in my overridden OnPaint but haven't a clue how to resize the numbers.
Hope this makes sense and thanks in advance,
Kyle