jwcoleman87
Well-known member
- Joined
- Oct 4, 2014
- Messages
- 124
- Programming Experience
- Beginner
In order to use a timer in my code, does my program need to run on a main loop?
I have an application that connects to an SQL server and updates and retrieves and queries information on a regular basis. It does not run on a loop, nor do the queries. I feel a "real-time" connection to the database could be a bit heavy for any network. The thing is. I want a timer in my main form, do I need to put my whole application into a main loop in order for it to update on a regular basis? I'm assuming yes. And in assuming yes I'm assuming a massive rework of my current code, which is all event driven at the moment.
I have an application that connects to an SQL server and updates and retrieves and queries information on a regular basis. It does not run on a loop, nor do the queries. I feel a "real-time" connection to the database could be a bit heavy for any network. The thing is. I want a timer in my main form, do I need to put my whole application into a main loop in order for it to update on a regular basis? I'm assuming yes. And in assuming yes I'm assuming a massive rework of my current code, which is all event driven at the moment.