Progress Bar

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Steven Blair

    #1

    Progress Bar

    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
    A blog about computational biology, axolotls, and black cats.



  • Steven Wood

    #2
    Re: Progress Bar

    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

    ---
    Steven Wood

    "Steven Blair" <steven.blair@b tinternet.com> wrote in message
    news:bjasvo$lbq $1@hercules.bti nternet.com...[color=blue]
    > 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
    >
    >[/color]


    Comment

    Working...