Saturday, 15 January 2011

Multithreading with windows forms C# -


I'm trying to create a window that shows all the running tasks. If I want to stop working individually I have to work as a console application, but when I try to create it as a Windows form, this screw up

  • Create a task
  • Store it in a list
  • Start the job =
  • End loop

    I want to show this list in a list view in my form and every The status of this work to display and update the name for a few seconds. Someone can help me with that or suggest that reading good to study multithreading. Thank you.

    I have to work as a console application but when I try to make it As a window application, I make it screws.

    provided you could not change your logic on the windows farms during the port, it is likely to update the Windows Forms control from the background thread inside your work.

    You can only use Windows Forms Control with the main project (UI) thread, and not from the background thread. If you want to update the UI, you need to use the call to call the UI thread again.

  • No comments:

    Post a Comment