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

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

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.