csharp Sweden
  • 13 years ago

    I wish to loop through a very large file looking for text. At the same time I want to give feedback to the user in my Windows form without getting the whole window all locked. This process will take 5 minutes.

    I guess I must create some kind of thread?

    Any idea?

  • 13 years ago

    I would suggest you look into the BackgroundWorker object. It's designed with your task in mind.

    This will do the trick, I'm sure :)


  • 13 years ago
    I think Backgroundworker will do if you have Visual Studio 05 else threading is your lonely hope and offcource thread can be used in Visual Studio 05.
  • 13 years ago
    I will try to use backgroundworker. Thanks!

Post a reply

Enter your message below

Sign in or Join us (it's free).


Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Any fool can write code that a computer can understand. Good programmers write code that humans can understand.” - Martin Fowler