Dynamic Progress Bar
Posted on 2005-04-25
I have already asked this question once but haven't got a proper answer.
I have two forms, main form and some sub form. There is a function in the main form that does some calculations and performs some operations which may take between 5 to 10 seconds (involving database access and file transferring).
This function also initializes the second form, passing results of all operations to it and displaying on the top of the main form.
During these 5-10 seconds my first form is getting frozen and I wold like to show a progress bar on a separate form probably, showing the progress untill all operations are done. Presence of cancel button is optional but preferable.
I understand that I have to start my operation in a separate thread. I found some links but it's not still very much clear to me.
I would appreciate your help but coding examples would be more appreciated than links to other 50-topic messages ;)
That's all for windows-forms using c#