Page 1 of 1

Background Worker Component

PostPosted: May 19th, 2009, 6:24 pm
by simad
Hi , i have a ListView and i want to use the Background Worker to load this ListView Items from a Text File , This Text file is very huge so what i want to do :

Use the Background Worker to do the Task of populating this Listview from the Text File , so that the Application will not freeze Is there any Idea ?



Simad

Re: Background Worker Component

PostPosted: May 19th, 2009, 7:25 pm
by Kambiz
Choosing the Background Worker component is the right decision.

You will find a complex sample at viewtopic.php?f=7&t=1435

Re: Background Worker Component

PostPosted: May 19th, 2009, 8:34 pm
by simad
many thanks Kambiz , could you please give the Steps that i should follow :

Where should put the ?+ :

ListView.Items * LoadfromFile('c:\test.txt')

* is a Function i use to populate the ListView from this Text File .


i forget and how show a Progressbar stepping till the listview is fully populated

Re: Background Worker Component

PostPosted: May 20th, 2009, 1:40 pm
by Kambiz
I believe that's your job to figure out the solution.

You may find the following post helpful too:
viewtopic.php?f=5&t=1549