Monday, May 6, 2013

RunWorkerCompleted taking long to process?

hey guys...


with the help of some very helpful people here I learned to use backgroundworker and now have animations for all my big processes. but i'm having a bit of an annoyance.


the code set under RunWorkerCompleted seems to be slow to process.


for example, in going from one form to the other, the this.dispose() and form2.show() lags, so either closing the open form takes a while, then form 2 comes up, or if I switch the code, form2 shows up for a while before form 1 closes.


this only began happening after I moved the code into the runworkercompleted after adding a backgroundworker.


is there a way to speed this up? thanks!


No comments:

Post a Comment