Skip to content

Instantly share code, notes, and snippets.

@Willy-Kimura
Created November 6, 2017 13:15
Show Gist options
  • Save Willy-Kimura/34e728a88653a19b7fbaf668fdd90e10 to your computer and use it in GitHub Desktop.
Save Willy-Kimura/34e728a88653a19b7fbaf668fdd90e10 to your computer and use it in GitHub Desktop.
Timer method for running the "GenerateSpline" method.
Private Sub Dashboard_Load(sender As Object, e As EventArgs) Handles MyBase.Load
' Add a colorset for beautifying our charts.
BunifuDataViz1.colorSet.Add(Color.FromArgb(60, 158, 241))
BunifuDataViz1.colorSet.Add(Color.FromArgb(39, 180, 109))
BunifuDataViz1.colorSet.Add(Color.FromArgb(255, 60, 49))
End Sub
Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
' After the set number of milliseconds, stop the timer.
Timer1.Stop()
' Then run the method.
GenerateSpline()
End Sub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment