473,406 Members | 2,343 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,406 software developers and data experts.

Keep time updated on form

I am trying to figure out how to place the current time on a form and
keep it current. Can someone please point me to a tutorial or code on
how to do this in vb.net?

thanks
Nov 21 '05 #1
6 1969
Take a look at the timer class. Basically, create a timer on your form that
will trigger every second and update the form's time in the timer event.

Mike Ober.

"jaytm" <do******@spamstop.com> wrote in message
news:OT**************@TK2MSFTNGP14.phx.gbl...
I am trying to figure out how to place the current time on a form and
keep it current. Can someone please point me to a tutorial or code on
how to do this in vb.net?

thanks


Nov 21 '05 #2
Take a look at the timer class. Basically, create a timer on your form that
will trigger every second and update the form's time in the timer event.

Mike Ober.

"jaytm" <do******@spamstop.com> wrote in message
news:OT**************@TK2MSFTNGP14.phx.gbl...
I am trying to figure out how to place the current time on a form and
keep it current. Can someone please point me to a tutorial or code on
how to do this in vb.net?

thanks


Nov 21 '05 #3
Michael D. Ober wrote:
Take a look at the timer class. Basically, create a timer on your form that
will trigger every second and update the form's time in the timer event.

Mike Ober.

"jaytm" <do******@spamstop.com> wrote in message
news:OT**************@TK2MSFTNGP14.phx.gbl...
I am trying to figure out how to place the current time on a form and
keep it current. Can someone please point me to a tutorial or code on
how to do this in vb.net?

thanks



Thanks Mike....works gr8
Nov 21 '05 #4
Michael D. Ober wrote:
Take a look at the timer class. Basically, create a timer on your form that
will trigger every second and update the form's time in the timer event.

Mike Ober.

"jaytm" <do******@spamstop.com> wrote in message
news:OT**************@TK2MSFTNGP14.phx.gbl...
I am trying to figure out how to place the current time on a form and
keep it current. Can someone please point me to a tutorial or code on
how to do this in vb.net?

thanks



Thanks Mike....works gr8
Nov 21 '05 #5
"Michael D. Ober" <obermd.@.alum.mit.edu.nospam> schrieb:
Take a look at the timer class. Basically, create a timer on your form
that
will trigger every second and update the form's time in the timer event.


If you are displaying seconds, I would choose a smaller timer tick interval
for updating the display.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #6
"Michael D. Ober" <obermd.@.alum.mit.edu.nospam> schrieb:
Take a look at the timer class. Basically, create a timer on your form
that
will trigger every second and update the form's time in the timer event.


If you are displaying seconds, I would choose a smaller timer tick interval
for updating the display.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Maxine G | last post by:
I have two forms, a menu and a data entry form. The entry form is bound to a query against linked SQL server tables. In the deactivate event, I have some code which asks the user if they want to...
2
by: Mark Reed | last post by:
Hi all, Scenario: I have about 10 people using a front end database which only 2 have the privilege to update the information. This is done by pasting the contents of a notepad report into a...
4
by: Paul | last post by:
I have a form that is bound on a table. The form has a text box that has =Time() and an Add button. How can I update the time or make it the current time before adding a record on the table via...
25
by: Neil Ginsberg | last post by:
A while back I posted a message re. using an ADP file with a SQL Server back end as opposed to MDB file with linked tables, thinking that the ADP file would be less problematic. The input I got was...
0
by: jaytm | last post by:
I am trying to figure out how to place the current time on a form and keep it current. Can someone please point me to a tutorial or code on how to do this in vb.net? thanks
15
by: l3vi | last post by:
I have a new system Im building that stores entries of what people are searching for on my sites. I want to be able to keep records of how many times a keyword was searched for daily, and from...
2
by: Al G | last post by:
Hi, (VS2005, SP1, VB windows form) I have a VB application that reads large files. While it is running, a record counter is being updated and shown in a text box. If I switch to another...
11
by: cty0000 | last post by:
I have some quiestion... I want to draw line,point,rectangles and etc... on the from So I code like this.. public update() { g = this.CreateGraphics(); g.FillRectangle(Brushes.White, x1,...
2
by: jamil616 | last post by:
Hi all, I have a form which is also built with a subform. In the form I add the date and time when a record is changed/added to a respective table in the database. So that, when the next...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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,...
0
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.