473,666 Members | 2,257 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to set the database time to timer control

1 New Member
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 2384
ADezii
8,834 Recognized Expert Expert
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
23932
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 timer control with interval value of 3000, i.e 3 second, I want to accomplish the following: - Initially, only START button is visible to the user, i.e the 3 labels are set to be invisible. - When click on START button, the button disappear and...
4
31211
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 http://searchvb.techtarget.com/tip/1,289483,sid8_gci535495,00.html which has the following: > Want to really get down to instants? This tip from reader Phil Lenoir tells you how. >...
0
1186
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 know of a fix for Windows 98 or another work- around for this problem? Thanks, Lindy
3
1863
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 application is busy. So even if my application took 2 mins, the label that is used to show the number of seconds elapsed will still say "2 seconds".
4
1660
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 well. now i need to check the duration i have to use timer control on the page. how to use and how to caliculate the remaing time period how much time left,etc.or any alternative plz specify
11
5191
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
2215
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 event I update a label on my form, nothing else. just counting in my head I have determined that it take roughly 14 seconds to get through 1000 ticks or 1 second of the timer. This really surprises me. I haven't even done any processing yet and...
2
1891
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 polls MSMQ after every 1 sec & display the message in the label, if any. In the same ASPX page I have button (Save Data). Problem is that, when my application thread enters to the method PollMSMQ(), it takes some time to poll the message queue say 3...
3
3864
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 Thread)? In some of the timers I update some UI controls e.g statusbar.labels and I
0
1176
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. My problem now is, I want the value of frmBlinker.lblMessage.Text &= Table.Rows.Count.ToString.Trim & " file(s) to receive." should get displayed as a notification to a user time to time. The problem is when I give the value of ...
0
8440
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8866
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8781
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8550
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8638
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7381
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5662
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2769
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1769
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.