473,378 Members | 1,382 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,378 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 1967
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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...

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.