locked
automaticcally refreshing data within the win app every 30 minutes. RRS feed

  • Question

  • I would like the client app being able to refresh the data every 30 minutes.

    Do you have an example?

    Friday, June 24, 2011 5:31 PM

Answers

  • Hello Hope it will help

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
      Timer1.Enabled = True
      Timer1.Interval = 1800000
      Timer1.Start()
     End Sub

    Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
            'Clear What You Want>>For Example
            TextBox1.Clear()
    End Sub

     

    • Proposed as answer by Michael M. Owens Saturday, June 25, 2011 8:10 PM
    • Marked as answer by Mike Feng Wednesday, July 6, 2011 10:59 AM
    Friday, June 24, 2011 5:55 PM
  • I would like the client app being able to refresh the data every 30 minutes.

    Do you have an example?


    Hello tlu,

     

    you can use the timer control , one sample here

     

     Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
     Timer1.Enabled = True
     Timer1.Interval = 1800000
     Timer1.Start()
     End Sub
    
     Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
     'your refresch here 
    End Sub
    

    Bye

     


    Carmelo La Monica  http://community.visual-basic.it/carmelolamonica/


    • Edited by Carmelo La Monica Friday, June 24, 2011 6:00 PM time wrong
    • Proposed as answer by Mike Feng Monday, June 27, 2011 11:36 AM
    • Marked as answer by Mike Feng Wednesday, July 6, 2011 10:59 AM
    Friday, June 24, 2011 5:34 PM

All replies

  • I would like the client app being able to refresh the data every 30 minutes.

    Do you have an example?


    Hello tlu,

     

    you can use the timer control , one sample here

     

     Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
     Timer1.Enabled = True
     Timer1.Interval = 1800000
     Timer1.Start()
     End Sub
    
     Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
     'your refresch here 
    End Sub
    

    Bye

     


    Carmelo La Monica  http://community.visual-basic.it/carmelolamonica/


    • Edited by Carmelo La Monica Friday, June 24, 2011 6:00 PM time wrong
    • Proposed as answer by Mike Feng Monday, June 27, 2011 11:36 AM
    • Marked as answer by Mike Feng Wednesday, July 6, 2011 10:59 AM
    Friday, June 24, 2011 5:34 PM
  • Hello Hope it will help

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
      Timer1.Enabled = True
      Timer1.Interval = 1800000
      Timer1.Start()
     End Sub

    Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
            'Clear What You Want>>For Example
            TextBox1.Clear()
    End Sub

     

    • Proposed as answer by Michael M. Owens Saturday, June 25, 2011 8:10 PM
    • Marked as answer by Mike Feng Wednesday, July 6, 2011 10:59 AM
    Friday, June 24, 2011 5:55 PM