Please help me how to use threading
Friends

can any one help me how to use Threads in My condition .

**Q.1** I have to insert values in table from .net on some condition like where Name = 'John'
The name will be type by user in textbox. Now i want to know how to get text from textbox while using thread. I want to use one thread for inserting because if there is large amount of rows, then sql take 30 seconds.

**Q.2** How to retrieve data from table using another thread. I mean to say after retrieving while providing it to datagridview should i check Datagridview's Invokerequired property.

**Q.3** After retrieving data i want to show it in datagridview. but i want to arrange the numeric values towards right side of datagridview and amount which is less than 10 should be highlited by red colour. This would be done in seperate thread
, because it also take lot of time if data is in large amount.

**Q4** Tell me how to call these threads one by one. If I initialize thread1 and start it and i initialize second thread below it and start it then it execute second thread before completing first work as shown below

Thread thr1 = new Thread (new ThreadStart(this.insertingValues));
thr1.start();
 
Thread thr2 = new Thread (new ThreadStart(this.Retreving));
thr2.start();

after starting thr1 it initialize thr2 thread and starts thr2 before completing work assigned to thr1.

**Q5** i have started Progress bar on button Click. Now How to set Progress bar marquespeed =0. should i have to again check Progress bar's invokerequired. if yes then how i will stop it using Invoke of Form.

Please help me i have stuck to it from last 3 days..
Please help.....

**If any one want my code then i can mail it. Please help me guys..........**
Please help me how to use threading
===

Friends

can any one help me how to use Threads in My condition .

**Q.1** I have to insert values in table from .net on some condition like where Name = 'John'
The name will be type by user in textbox. Now i want to know how to get text from textbox while using thread. I want to use one thread for inserting because if there is large amount of rows, then sql take 30 seconds.

**Q.2** How to retrieve data from table using another thread. I mean to say after retrieving while providing it to datagridview should i check Datagridview's Invokerequired property.

**Q.3** After retrieving data i want to show it in datagridview. but i want to arrange the numeric values towards right side of datagridview and amount which is less than 10 should be highlited by red colour. This would be done in seperate thread
, because it also take lot of time if data is in large amount.

**Q4** Tell me how to call these threads one by one. If I initialize thread1 and start it and i initialize second thread below it and start it then it execute second thread before completing first work as shown below

Thread thr1 = new Thread (new ThreadStart(this.insertingValues));
thr1.start();
 
Thread thr2 = new Thread (new ThreadStart(this.Retreving));
thr2.start();

after starting thr1 it initialize thr2 thread and starts thr2 before completing work assigned to thr1.

**Q5** i have started Progress bar on button Click. Now How to set Progress bar marquespeed =0. should i have to again check Progress bar's invokerequired. if yes then how i will stop it using Invoke of Form.

Please help me i have stuck to it from last 3 days..
Please help.....

**If any one want my code then i can mail it. Please help me guys..........**