PDA

View Full Version : VB Question


GoldenEagle
11-22-2004, 12:38 PM
Does anyone know how I would wrtie the code to tell a label to display the current time of the day?

VPI97
11-22-2004, 12:56 PM
Label1.Caption = Time()

MJ4H
11-22-2004, 12:57 PM
Label1.Caption = Time

MJ4H
11-22-2004, 12:59 PM
DOLA

and if you want it to update, you can use the Timer function to have it update each minute or whatever.

GoldenEagle
11-23-2004, 10:20 AM
I treid it and the timer is still not dispalying right. Also how do I combine the code and the timer event?

Mr. Wednesday
11-23-2004, 03:40 PM
Does anyone know how I would wrtie the code to tell a label to display the current time of the day? lbl.Caption = Now()

Or, lbl.Caption = Format$("...", Now())

(where "..." is the actual format you want applied)

Mr. Wednesday
11-23-2004, 03:40 PM
I treid it and the timer is still not dispalying right. Also how do I combine the code and the timer event? In the timer event, put in code to update the label. Does that answer your question?

JasonC23
11-23-2004, 03:57 PM
Are we seriously so mature now here at FOFC that no one has started a "VD Question" parody thread?

Bonegavel
11-23-2004, 04:06 PM
Are we seriously so mature now here at FOFC that no one has started a "VD Question" parody thread?
You have a keyboard and access to the forum young man.

JasonC23
11-24-2004, 07:57 AM
I know, but when I started a thread entitled, "Cardinal Hires Shecky Green" during the Dennis Green board domination, I think I hit my all-time parody thread high.

Man, that's not saying a whole lot, is it?