473,513 Members | 2,469 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Display time in Label with constant update

14 New Member
Hi,

Me to Express vb 2k5
As I could remember there was a funtion in the old VB where simply type "Time" or something then it will show you the real time and second appear on the label.

Is that funtion still available in VB express 2k5, or it had been renamed to something else?

thx
Jan 17 '07 #1
8 17177
kenobewan
4,871 Recognized Expert Specialist
Have you tried something like:
Expand|Select|Wrap|Line Numbers
  1. lblTime.Text = Format(Now, "HH:mm:ss")
Hope that this helps.
Jan 17 '07 #2
Mulm3h
14 New Member
Have you tried something like:
Expand|Select|Wrap|Line Numbers
  1. lblTime.Text = Format(Now, "HH:mm:ss")
Hope that this helps.
i tried that before it does show the time, but it doesnt refresh like a realtime:(
Jan 17 '07 #3
kenobewan
4,871 Recognized Expert Specialist
Not sure purpose of clock, but live clocks are usually done through JS - check out:
Clocklink
Jan 17 '07 #4
Mulm3h
14 New Member
Not sure purpose of clock, but live clocks are usually done through JS - check out:
Clocklink
my idea behind using a clock with ticking second was for the user to know the current time when the program run all will be blackout only the program is visible so i need a clock for my VB project to let users know what time it is.
Jan 18 '07 #5
snowwwolf
28 New Member
my idea behind using a clock with ticking second was for the user to know the current time when the program run all will be blackout only the program is visible so i need a clock for my VB project to let users know what time it is.
if your project is web application, you must use script ( javascript , or other ) to show current time.

if your project is window application, you can try by timer controls, place the code to tick event of timer control. set enabled to true and interval to 1000 for timer control's properties.
Jan 18 '07 #6
Overdosed
1 New Member
Well, I know this much.

In VB6, you can make a label showing the time and make it update by it self. In .NET I am still stumped on how to do that correctly.

but the Code for VB6 is

Expand|Select|Wrap|Line Numbers
  1. lbltime.caption = Time
  2.  
and it's that easy, I wish I knew how to do it in .NET, I'm sure my programming teacher will tell me what the code is, if I get it I will share it with everyone.

Till then,

Overdosed
Apr 1 '07 #7
yousefla
10 New Member
Check out htis link:

http://www.mycsharpcorner.com/Post.aspx?postID=23

It shows how you can make your own Clock User Control, then you can use in your Windows Form.

The basic idea is simple: "you use a Timer object to refresh a Lable Text property with the current time".

Hope this helps!
Apr 1 '07 #8
patberry
9 New Member
I need a javascript to click an URL link at 7:00pm CST everyday which starts a web presentation?
May 23 '07 #9

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

Similar topics

1
3576
by: Agency | last post by:
I'm still working on the bpm counter. I need to have at least 2 displays that are not static. One would be a clock/running time and the other would should the current beat count. How would I...
3
8703
by: Terry Carroll | last post by:
I've got a small batch image-processing program (it adds the time a digital photo was taken to the lower right of the image), and as a feature, I wanted to show a thumbnail of each image it was...
0
8362
by: Carl | last post by:
I have a main form with navigation buttons on it and a label showing for example Record 1 of 15 using recordsetclone on it and eveything works fine. When I move through the records the record...
10
4749
by: Bart Goeman | last post by:
Hi, I have a question about how to put redundant information in data structures, initialized at compile time. This is often necessary for performance reasons and can't be done at run time (data...
29
15632
by: SysSpider | last post by:
Hi again, This is my problem: when i try to compile the code that contains the function below, i get this: -- gcc:21: error: case label does not reduce to an integer constant gcc:24: error:...
0
5797
by: M. David Johnson | last post by:
I cannot get my OleDbDataAdapter to update my database table from my local dataset table. The Knowledge Base doesn't seem to help - see item 10 below. I have a Microsoft Access 2000 database...
3
2884
by: Will | last post by:
Hi there .. I wanna know how to display the time in a label and have it change every sec with the system cock ... meaning that its always syncronized with the system clock, Sec per sec. I...
1
4511
by: rbinington | last post by:
Hi, I am trying to write a DNN module that has the ability to insert articles into an article repository. I want the users to be able to move pages around and enter text into the FCKEditor. I...
5
421
by: Rex Mottram | last post by:
Can anyone explain this? % cat t.c #include <stdio.h> #define FIRST "first" #define SECOND "second" int main(int argc, char *argv)
0
7259
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
7158
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7535
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
5683
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,...
1
5085
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...
0
3232
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3221
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1592
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 ...
1
798
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.