2021年2月9日星期二

vb.net How do I refresh the data for every 5 seconds?

I just want that for every 5 seconds, this Student function refresh, in my current behavior, i need to click button so that the Student function refresh,

Private Sub Mainform_Load(sender As Object, e As EventArgs) Handles MyBase.Load       Timer1.Interval = TimeSpan.FromSeconds(5).TotalMilliseconds      Timer1.Start()  End Sub  Public Function Student()      .....  End Function    Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick      Student()  End Sub  
https://stackoverflow.com/questions/66130705/vb-net-how-do-i-refresh-the-data-for-every-5-seconds February 10, 2021 at 11:56AM

没有评论:

发表评论