Question on timer!
-
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
-
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
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.
-
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.
Thank you