Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Question on timer!

Question on timer!

Scheduled Pinned Locked Moved Visual Basic
questioncsharpdatabasehelptutorial
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    User 1934105
    wrote on last edited by
    #1

    I have a question regarding the use of timer. I have created a VB .Net form with a timer that run at the background which at interval of one minutes will make a connection to the SQLCE database to retrieve data. At the same time there are others forms which is also be running based on the user interaction with the system. The others form it will too make connection to the database based on user interaction (example click button to save data). I want to ask is that if the timer is currently on executing it codes, and then when the user click to save data into database, will the system complete the timer execution then follow by the user execution code or run at the same time? I'm sorry that I unable to provide a clear question (it may be confusing) but I'm really need help for this. Thanks in advance

    K 1 Reply Last reply
    0
    • U User 1934105

      I have a question regarding the use of timer. I have created a VB .Net form with a timer that run at the background which at interval of one minutes will make a connection to the SQLCE database to retrieve data. At the same time there are others forms which is also be running based on the user interaction with the system. The others form it will too make connection to the database based on user interaction (example click button to save data). I want to ask is that if the timer is currently on executing it codes, and then when the user click to save data into database, will the system complete the timer execution then follow by the user execution code or run at the same time? I'm sorry that I unable to provide a clear question (it may be confusing) but I'm really need help for this. Thanks in advance

      K Offline
      K Offline
      KaptinKrunch
      wrote on last edited by
      #2

      The code for both the timer and the user action will run at the same time or there abouts. This is because when the timer_elapsed event triggers it runs on a seperate thread.

      U 1 Reply Last reply
      0
      • K KaptinKrunch

        The code for both the timer and the user action will run at the same time or there abouts. This is because when the timer_elapsed event triggers it runs on a seperate thread.

        U Offline
        U Offline
        User 1934105
        wrote on last edited by
        #3

        Thank you

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups