Click here to Skip to main content
15,923,852 members
Home / Discussions / C#
   

C#

 
QuestionDATA GRID in C# window application Pin
Faisal Khatri16-May-06 10:27
Faisal Khatri16-May-06 10:27 
AnswerRe: DATA GRID in C# window application Pin
Josh Smith16-May-06 10:59
Josh Smith16-May-06 10:59 
AnswerRe: DATA GRID in C# window application Pin
coolvinx16-May-06 11:11
coolvinx16-May-06 11:11 
Questionpdb file Pin
mehrdadc4816-May-06 10:03
mehrdadc4816-May-06 10:03 
AnswerRe: pdb file Pin
Michael P Butler16-May-06 10:17
Michael P Butler16-May-06 10:17 
Questionmulticast problem Pin
snouto16-May-06 9:38
snouto16-May-06 9:38 
AnswerRe: multicast problem Pin
Nader Elshehabi16-May-06 15:52
Nader Elshehabi16-May-06 15:52 
QuestionHelp with BGWorker Pin
student_rhr16-May-06 9:06
student_rhr16-May-06 9:06 
I am trying to process some work in the back ground so my UI is not locked up. This is what I have currently:

private void btnPHourly_Click(object sender, EventArgs e)
<code>{
string tempDestination = FileCopier.Properties.Settings.Default.PHourlyPath.ToString();
string tempRemoveable = FileCopier.Properties.Settings.Default.RemoveableDiskPath.ToString();
ValidatePaths(ref tempDestination, ref tempRemoveable);
DisableButtons();
CopyFiles cf = new CopyFiles(tempDestination, tempRemoveable, ExtensionFlag);
EnableButtons();
}</code>


I want to CopyFiles cf = new CopyFiles(tempDestination, tempRemoveable, ExtensionFlag); process to work in the background. How can I implement the BackGroundWorker in this scenerio?

Since I cant pass parameters (such as tempDestination etc) to bgworker I am not sure how I can acomplish this. Can someone up here help me with this issue? Thanks in advance.
AnswerRe: Help with BGWorker Pin
led mike16-May-06 9:24
led mike16-May-06 9:24 
AnswerRe: Help with BGWorker Pin
Robert Rohde16-May-06 9:40
Robert Rohde16-May-06 9:40 
QuestionA beginering Question too Pin
jackalfb16-May-06 8:50
jackalfb16-May-06 8:50 
AnswerRe: A beginering Question too Pin
stancrm18-May-06 3:53
stancrm18-May-06 3:53 
GeneralRe: A beginering Question too Pin
jackalfb20-May-06 1:39
jackalfb20-May-06 1:39 
QuestionWeakReferences and the background garbage collector Pin
Judah Gabriel Himango16-May-06 8:48
sponsorJudah Gabriel Himango16-May-06 8:48 
AnswerRe: WeakReferences and the background garbage collector Pin
led mike16-May-06 9:22
led mike16-May-06 9:22 
GeneralRe: WeakReferences and the background garbage collector Pin
Judah Gabriel Himango16-May-06 11:11
sponsorJudah Gabriel Himango16-May-06 11:11 
AnswerRe: WeakReferences and the background garbage collector Pin
Guffa16-May-06 12:34
Guffa16-May-06 12:34 
QuestionXML and sorting Pin
donkaiser16-May-06 8:44
donkaiser16-May-06 8:44 
AnswerRe: XML and sorting Pin
Rei Miyasaka16-May-06 11:30
Rei Miyasaka16-May-06 11:30 
GeneralRe: XML and sorting Pin
donkaiser17-May-06 18:50
donkaiser17-May-06 18:50 
GeneralRe: XML and sorting Pin
Rei Miyasaka18-May-06 7:08
Rei Miyasaka18-May-06 7:08 
GeneralRe: XML and sorting Pin
donkaiser19-May-06 10:41
donkaiser19-May-06 10:41 
GeneralRe: XML and sorting [modifed] Pin
Rei Miyasaka19-May-06 13:54
Rei Miyasaka19-May-06 13:54 
QuestionJNI_CreateJavaVM Pin
pwimmers16-May-06 8:29
pwimmers16-May-06 8:29 
QuestionCollection was modified; Enumeration Operation may not execute Pin
Vijju200616-May-06 6:50
Vijju200616-May-06 6:50 

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.