给radialgauge设置Value即可。随系统时间这个你得自己通过定时器更新
我用VB.NET环境,测试如下程序:
Public Class Form1
Private Sub Form1_ContextMenuStripChanged(sender As Object, e As EventArgs) Handles Me.ContextMenuStripChanged
Timer1.Enabled = True
End Sub
Private Sub Form1_Closing(sender As Object, e As CancelEventArgs) Handles Me.Closing
Timer1.Enabled = False
End Sub
Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
C1RadialGauge1.MorePointersValue_0 = Date.Now.Hour
C1RadialGauge1.MorePointersValue_1 = Date.Now.Minute
C1RadialGauge1.MorePointersValue_2 = Date.Now.Second
End Sub
End Class
不工作
|