vb.net 2.0 backgroundworker - how do I finalize the loading of a form when the .fill methods are in the backgroundworker?
Posted on 2006-04-01
I'm trying to make the loading of my app more responsive.
So far I have the background worker starting the fill methods that used to be in form load.
My problem is that once the worker is done, I don't know how to get the form to its default state.
Private Sub BackgroundWorker1_RunWorkerCompleted(....) Handles BackgroundWorker1.RunWorkerCompleted
Form loads - displays a bunch of databound text boxes with nothing in them.
also displays the navigation control, with all arrows dimmed and record 0 of 0
After the RunWorkerCompleted event fires, the move next and move last arrows 'light up' (turn from a non-clickable gray to a clickable blue)
However the current record is still 0 of 0, and all the fields are blank until I click the move next arrow.
What can I call so that the form looks like it would if I had left the dataset.fill events in form_Load?