Progress Bar

S

Steven Blair

Hi,

Having a bit of a problem with the Progress Bar and Timer component.

Basically, when I execute a menu option, I need the progress bar to start
working.

I have managed this and start the timer at the beginning of the function
with Timer1.Start();

The problem seems to be stopping the damn thing lol

When I put in the code Timer1.Stop(); the Progress bar just doesnt work. I
rem the Stop out and it starts working, but never stops working lol.

Anyone give me a help ?

Roughly, this is what I have

Func
{
Timer1.Start();
//Do some stuff
Timer1.Stop();
}

In the Timer Event i have th usual code for incrementing the Progress bar
and resetting it.

Steven
www.stevenblair.com
 
S

Steven Wood

Hi Steven.

Use a checked menu item and in the timer event test to see if the menu is
toggled on or off. If it's on, increment the progress bar, otherwise don't.

I did this recently for a service that checks a database to send e-mails.
The admininstrator can toggle the check on or off as they please.

Steven
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top