OK then, here's how you do that.
First, add a timer control to your form. It's in windows forms like the textboxes and whatnot. Presumably you'll want to set the interval to 1000 (since it's in MS), and enabled=false. At the top, in the form itself dim a logintime variable as a date.
In your login code, do this:
logintime = now
timer1.enabled = true
and on logout, presumably
timer1.enabled = false
your timer1 tick event code should be like:
TextBox1.Text = Format(Now.Subtract(logintime).Hours, "00") & ":" & Format(Now.Subtract(logintime).Minutes, "00") & ":" & Format(Now.Subtract(logintime).Seconds, "00")
Bookmarks