Hi everyone
I use the following code in VB 6 Form (Timer function) to show the date and time in textboxes.
My question is when the form is loaded, the textbox doesn't show the time immediately but takes some delay.
Why so? How can we reduce that delay?
I use the following code in VB 6 Form (Timer function) to show the date and time in textboxes.
My question is when the form is loaded, the textbox doesn't show the time immediately but takes some delay.
Why so? How can we reduce that delay?
Code:
'txtLoginDt = Date
txtLoginDt = Format(Date, "ddd, mmm dd, yyyy")
'txtLoginTm = Time
txtLoginTm = Format(Time, "hh:mm:ss Am/PM")
Comment