Non-responsive

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jim Christiano

    #1

    Non-responsive

    I've created a C# window's form application that migrates data. As it
    migrates data, the program itself is non-responsive. I would like to
    implement a cancel button to stop the migration mid-stream. Will I have to
    use threading to split the tasks or is there another way?

    Thanks in advance,
    Jim Christiano


  • Jon Skeet

    #2
    Re: Non-responsive

    Jim Christiano <jchristiano@di valsafety.com> wrote:[color=blue]
    > I've created a C# window's form application that migrates data. As it
    > migrates data, the program itself is non-responsive. I would like to
    > implement a cancel button to stop the migration mid-stream. Will I have to
    > use threading to split the tasks or is there another way?[/color]

    It's best to use threading, yes - have a separate thread doing the
    migration, and the event thread doing its normal thing. The worker
    thread should check a flag (or something) periodically to see whether
    or not it should stop.

    --
    Jon Skeet - <skeet@pobox.co m>
    Pobox has been discontinued as a separate service, and all existing customers moved to the Fastmail platform.

    If replying to the group, please do not mail me too

    Comment

    • Jim Christiano

      #3
      Re: Non-responsive



      Thank you Jon.

      *** Sent via Developersdex http://www.developersdex.com ***
      Don't just participate in USENET...get rewarded for it!

      Comment

      Working...