Test Foro de elhacker.net SMF 2.1

Programación => .NET (C#, VB.NET, ASP) => Programación General => Programación Visual Basic => Mensaje iniciado por: ntaryl en 17 Febrero 2010, 23:42 PM

Título: ListView item and Elapse time
Publicado por: ntaryl en 17 Febrero 2010, 23:42 PM
Good  morning   
I have a listview in a form
Want to put in  listview  item  a counter and  count the  elapse time  .For example
when few data  arrive  in listview  then  start the  counter and  show me the  elapse time (12 sec)
thanks for the time   
have a good  time

Título: Re: ListView item and Elapse time
Publicado por: seba123neo en 19 Febrero 2010, 02:49 AM
Hi, ntaryl, you can use the api timeGetTime, for example:

Api TimeGetTime (http://www.recursosvisualbasic.com.ar/htm/listado-api/200-api-timegettime.htm)

or you can use the GetTickCount api that it also serves to count elapsed time of a process.

Greetings.

PD:si entendio esto me hago mago... :xD
Título: Re: ListView item and Elapse time
Publicado por: ntaryl en 19 Febrero 2010, 21:29 PM
Thanks  man  for  the  answer   
I make a small  example  and  put  a listview .add a timer and  use the 

Format(TimeSerial(0, 0, CInt(Timer - mStart)), "hh:nn:ss")

Take the  elapse time   
the  problem  is when add a iten  in the listview  everything  go  fine 
the  second  and  the  other  not  run  show  me the  elapse  time  like  the  first item   
attach the  code   
http://www.2shared.com/file/11512560/ac129cba/test-proxy-list.html (http://www.2shared.com/file/11512560/ac129cba/test-proxy-list.html)