Click here to Skip to main content
15,903,613 members
Home / Discussions / C#
   

C#

 
QuestionUsing PropertyGrid and Collection Editor Pin
JuanAlbertoMD20-Apr-06 11:29
JuanAlbertoMD20-Apr-06 11:29 
AnswerRe: Using PropertyGrid and Collection Editor Pin
Robert Rohde20-Apr-06 22:50
Robert Rohde20-Apr-06 22:50 
QuestionBoolean Optimization Pin
Drew McGhie20-Apr-06 11:27
Drew McGhie20-Apr-06 11:27 
AnswerRe: Boolean Optimization Pin
User 665820-Apr-06 11:51
User 665820-Apr-06 11:51 
AnswerRe: Boolean Optimization Pin
Guffa20-Apr-06 11:58
Guffa20-Apr-06 11:58 
QuestionThreads and ProgressBar Pin
achrafus20-Apr-06 11:01
achrafus20-Apr-06 11:01 
AnswerRe: Threads and ProgressBar Pin
Ed.Poore20-Apr-06 12:13
Ed.Poore20-Apr-06 12:13 
AnswerRe: Threads and ProgressBar Pin
mikanu20-Apr-06 18:03
mikanu20-Apr-06 18:03 
Your problem seems to be a perfect candidate for the BackgroundWroker thread control that's newly available in the .NET 2.0 framework.
Using this controll is rather pain free. It's literally a matter of a few click to get yourself set up with a background worker thread that is going ot perform the scan in background for you. The way you use this control is you have to provide three functions to handle three events. One is the actual worker function (this will be the function that scans the files). Then There is a function that will be called when the progress changes. And the last one is going to be a function that will be called when the thread ahs finished processing. So in the actual worker function you will need to call the ReportProgress function that will basically marshal your call and eventually fire the second event (the progress changed event) on the appropriate thread. It's that easy.

Feel free to google for the BackgroundWorkerThread samples online


Good luck
Mikk

----
www.muzikstor.com
Questionhow set a orginate time of Unix timpstamp value?? Pin
Real Coder20-Apr-06 10:05
Real Coder20-Apr-06 10:05 
Questionhow to save some file path in sql server 2000? Pin
nomsnoms20-Apr-06 9:23
nomsnoms20-Apr-06 9:23 
GeneralRe: how to save some file path in sql server 2000? Pin
Guffa20-Apr-06 9:34
Guffa20-Apr-06 9:34 
QuestionD3D device problem - DirectX Pin
victor_ba8520-Apr-06 8:41
victor_ba8520-Apr-06 8:41 
AnswerRe: D3D device problem - DirectX Pin
Judah Gabriel Himango20-Apr-06 12:43
sponsorJudah Gabriel Himango20-Apr-06 12:43 
QuestionHELP! I'm stuck! Access credentials for network share Pin
chrisk7720-Apr-06 8:38
chrisk7720-Apr-06 8:38 
QuestionImporting MS Access Report in Crystal Reports XI Pin
Code Toad20-Apr-06 8:06
Code Toad20-Apr-06 8:06 
Questionprinting in a right-to-left language Pin
Green Fuze20-Apr-06 7:14
Green Fuze20-Apr-06 7:14 
QuestionInvert Bitmap Pin
sergestusxx20-Apr-06 7:11
sergestusxx20-Apr-06 7:11 
AnswerRe: Invert Bitmap Pin
LongRange.Shooter20-Apr-06 7:42
LongRange.Shooter20-Apr-06 7:42 
AnswerRe: Invert Bitmap Pin
Josh Smith20-Apr-06 7:44
Josh Smith20-Apr-06 7:44 
AnswerRe: Invert Bitmap Pin
Guffa20-Apr-06 8:07
Guffa20-Apr-06 8:07 
AnswerRe: Invert Bitmap Pin
Judah Gabriel Himango20-Apr-06 12:47
sponsorJudah Gabriel Himango20-Apr-06 12:47 
Questionregistering a dll at runtime Pin
shezh20-Apr-06 6:44
shezh20-Apr-06 6:44 
AnswerRe: registering a dll at runtime Pin
Le centriste20-Apr-06 7:05
Le centriste20-Apr-06 7:05 
Questionlate binding to VB6 dlls Pin
shezh20-Apr-06 6:11
shezh20-Apr-06 6:11 
Questioncreating a txt file Pin
john3420-Apr-06 5:42
john3420-Apr-06 5:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.