473,473 Members | 2,092 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

stop watch using vb.net

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
Oct 4 '05 #1
2 5555
There is a good implementation ofa stopwatch class in C# availabel here

http://www.cambiaresearch.com/cambia...StopWatch.aspx

and a C# to Vb.Net converter here:

http://www.developerfusion.co.uk/uti...sharptovb.aspx

HTH

Ollie Riches

"Job Lot" <Jo****@discussions.microsoft.com> wrote in message
news:ED**********************************@microsof t.com...
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

Oct 4 '05 #2
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

"Job Lot" <Jo****@discussions.microsoft.com> schreef in bericht
news:ED**********************************@microsof t.com...
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

Oct 4 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Matt Theule | last post by:
While stepping through an ASP.NET project, I found that data was being inserted into my database even though I was not stepping through the code that inserted the data. I have a single page with...
7
by: Brad | last post by:
When debugging my current web project, in VS2003, I found I had lost the ability to drill down on watch objects in the Watch Window; I could only view the single value specific watch objects. ...
2
by: Enrique Bustamante | last post by:
Casting arrays that works on watch and command window but not in code. My application is casting arrays in a way it should work. To test if I was doing something invalid, I wrote a test code that...
6
by: Xero | last post by:
Hi. I have created a 'stop watch' program. The working principle of the program is to declare an integer (say 'intTime'), which is initalized to zero. Once the user clicks the 'Start' button,...
2
by: Job Lot | last post by:
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
6
by: M Craig | last post by:
I'm trying to write a custom installation engine to plug into our existing build system. Some things I'm trying to do are, Create/Delete/Start/Stop Application Pools, Web Sites, and Virtual...
4
by: Rajneesh Chellapilla | last post by:
I wrote this program. Its kinda of strange when I make a reset function reset(){c=0} its doest reset the setTimeout. However if I directly pass c=0 to the onclick button it does reset the timer. What...
3
by: GiJeet | last post by:
I put the the button property in the watch window but it doesn't stop when the property changes value. For example I put this.myButton.Visible in the watch window with an initial value of false...
11
by: uzairmemon | last post by:
Any one Have coding of Reverse stop watch?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.