473,732 Members | 2,205 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 17191
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
3594
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 do this in Tkinter? I was thinkning of canvas-text, but there must be a widget for doing this kind of display. I'm a bit lost and would appreciate some help.
3
8777
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 being processed. I can't get the image to update, though. I trimmed it down to a basic app indicating the problem and the code is at the end of this message. It should display the three listed sample images, one after another. The thing is,...
0
8409
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 number changes fine. Within this main form I have a subform detailing distribution records for the contact (main form is based on this) that also has navigation buttons and a label showing Distribution 1 of ##. This is where the problem lies. The...
10
4782
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 structures are read only) Ideally one should be able to put the redundant information there automatically so no mistakes are possible, but in a lot of case I see no way how to do it.
29
15671
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: case label does not reduce to an integer constant --
0
5822
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 which indexes computer magazine articles for personal reference. I am developing a Visual Basic.NET program whose sole purpose is to enter new records into the database. No updates to existing entries, no deletions, and no display
3
2890
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 need the code.
1
4530
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 want only one instance of the FCKEditor on the screen at one time so I make tabs that the user can click and I store the values in variables behind the scenes. I change the CSS class on the link that is the currently selected one. I have a really...
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
8946
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
9447
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
9307
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...
0
9181
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...
1
6735
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6031
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();...
0
4809
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3261
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
2721
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.