How do I interrupt a long running process? - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

How do I interrupt a long running process?

vbnvbn Posts: 60Member

I have a form on which I want to place two buttons. One button starts a long process running. The other button I want to use to interrupt (stop) the long running process.

I have tried using the system...doevents, but that does not seem to work.

Many thanks in advance!!!

Gary (vbn)


Comments

  • raymcdraymcd Posts: 284Member
    :
    : I have a form on which I want to place two buttons. One button starts a long process running. The other button I want to use to interrupt (stop) the long running process.
    :
    : I have tried using the system...doevents, but that does not seem to work.
    :
    : Many thanks in advance!!!
    :
    : Gary (vbn)
    :
    :
    :
    You might want to create a worker thread for the long running process. Then it won't hold up the message que for the User Interface.

    -ray
  • vbnvbn Posts: 60Member
    [b][red]This message was edited by vbn at 2003-4-30 7:9:9[/red][/b][hr]
    : :
    : : I have a form on which I want to place two buttons. One button starts a long process running. The other button I want to use to interrupt (stop) the long running process.
    : :
    : : I have tried using the system...doevents, but that does not seem to work.
    : :
    : : Many thanks in advance!!!
    : :
    : : Gary (vbn)
    : :
    : :
    : :
    : You might want to create a worker thread for the long running process. Then it won't hold up the message que for the User Interface.
    :
    : -ray
    :
    Many thanks Ray!!! Gary (vbn)


Sign In or Register to comment.