stop watch using vb.net

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

how can i create a stop watch using vb.net
i am performing a data extraction job using windows forms and want to
display time elapsed on the form. how can i do it?

Thanks
 
Job,

The most easiest method is probably, typed in this message so watch typos or
whatever.

\\\
sub Button_Click_event
static started as boolean
static mystart as integer
if started = false then
mystart = environment.tickcount
started = true
else
messagebox.show((environment.tickcount - started).ToString)
started = false
end if
end sub
///

Did you know that there is a special vbnet language newsgroup

microsoft.public.dotnet.languages.vb

I hope this helps,

Cor
 
Back
Top