How do I create an analog clock using winforms in F#?

后端 未结 1 671
眼角桃花
眼角桃花 2020-12-22 01:55

I have to create an analog clock using winforms in f#. The clock also needs to have a label showing date and time in digital form. I have figures out the label time/date, bu

相关标签:
1条回答
  • 2020-12-22 02:50

    You need to add an eventhandler on your Form. Like this:

    win.Paint.Add(fun pea -> pea.Graphics.DrawEllipse(Pen(Color.Red), 50, 50, 400, 400))
    

    Now you just have to draw lines for hour, minutes and seconds.

    0 讨论(0)
提交回复
热议问题