473,396 Members | 1,893 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

how to set the database time to timer control

hi sir,
here am doing one small project using VB with Access,
my title is Offline examiner.
in my project i created one form entitled attend exam
in this form am using timer control, and i wanna set particular time from the current time.(ex: 45min per exam).. that timing is differed for each exam. that timing allocation stored in database. now whats the confusion is how could i set that database timing to timer control..

pls help me.
Dec 7 '10 #1
1 2355
ADezii
8,834 Expert 8TB
You would transfer the desired number of Minutes into the Timer Control by setting its TimerInterval Property, keeping in mind that this Property is defined in MilliSeconds, and not Seconds. After the specified Time Interval, Code in the Form's Timer() Event will be executed. To set the Form's Timer for 45 Minutes:
Expand|Select|Wrap|Line Numbers
  1. Const conMILLIs_IN_MIN As Long = 60000
  2.  
  3. Me.TimerInterval = (45 * conMILLIs_IN_MIN)
  4.  
  5. '**************************
  6. 'To Disable the Timer
  7. 'Me.TimerInterval = 0
  8. '**************************
Dec 7 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: curious | last post by:
I am new to VB.NET and I need help in using timer control. Here is the scenario. I have 3 labels (label 1, label2, label 3), and a start button, all vertically aligned on the form. Using a...
4
by: William Bub | last post by:
Is there an accurate way to create a "stopwatch" good to 1/10 of a second? I'm not sure if I should use the timer control, or some way to access the computer timer. I found the following site...
0
by: Lindy Dubois | last post by:
I have written a program in VB .Net (2003) which includes a Timer control (System.Timers.Timer). The control does not increase time at all on Windows 98 but works fine on XP, etc. Does anyone...
3
by: David | last post by:
Hi There! I'm using Timer control to record how long my application perform certain tasks. However, apparently Timer control is not doing its' job (i.e. Not firing Tick event) while my...
4
by: yoshitha | last post by:
HI, I have a doubt . I am developing an application that is conducting test for the candidates. now my doubt is test duration is 30 min.i am displaying the questions randomly it is working...
11
by: John | last post by:
Hi Is there a way to force a vertical scroll bar on the data grid, even if the data grid has no rows? Thanks Regards
6
by: Steve | last post by:
I am working on a emulator and need to have time based events. I've tried to use the timer control and discovered that it runs waaaaaaay slow. I set the tick frequency to 1, then in the tick...
2
by: Umeshnath | last post by:
Hi, I have a web application that refreshes a label control every 1 sec (interval set by timer control). I am using Atlas panel for refreshing. Basically I have a method say PollMSMQ(), which...
3
by: Steve | last post by:
Hi All I am using VB.net 2008 and use timer controls within my applications Question Does the code in a Timer control.tick event run on a different thread to the main Application thread (UI...
0
by: Benniit | last post by:
I need help. My problem is I'm using visual basic.net 2008 and SQL server 2008. Now, the result the function below returns is the total number of records in the DataGridView based on the SQL query....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.