I just finish on windows application, that need to parse Given webpage for some data, and store them in CSV format. As this project is not too big, I never plan to use high end concepts and veryÃ‚ complex exceptional handling.
Similarly I neverÃ‚ plan to use multithreading in my application. Every thing works perfect, except human mind for the application. WhenÃ‚ I send that application to client to test, he runs it to perfection, but as my application generate log of what it has done, customer want to scroll that Text Box to read that log. Since I never user Multithreading. As soon as he start the application my application goes, in loop that make the application appear Hanged, as it stop the user Interface from getting refreshed, Though I call Application.DoEvents() in between but nothing happens. Its only than I realize,Ã‚ I should use Multithreading in my application, so I can Update my User Interface so client doesn’t get that feeling.
So I simply make a new thread during application startup and put every thing I wrote in Button Clicked function in a new function that, I need to pass as parameter to my new thread. And on button click simply Start and Stop of thread does rest of work.
I hardly increase my code by 10 lines but it gives a pleasent interface to user. This is why multithreading is important in today’s word.