Click here to Skip to main content
15,900,110 members
Home / Discussions / C#
   

C#

 
QuestionSettings Pin
Dave McCool21-Feb-06 23:32
Dave McCool21-Feb-06 23:32 
QuestionChange OpenFileDialog Pin
Anindya Chatterjee21-Feb-06 23:15
Anindya Chatterjee21-Feb-06 23:15 
AnswerRe: Change OpenFileDialog Pin
Andy Moore22-Feb-06 3:48
Andy Moore22-Feb-06 3:48 
QuestionTwo Threads accessing and modifying SQL database at the same time Pin
emran83421-Feb-06 22:24
emran83421-Feb-06 22:24 
AnswerRe: Two Threads accessing and modifying SQL database at the same time Pin
Curtis Schlak.2-Mar-06 12:58
Curtis Schlak.2-Mar-06 12:58 
QuestionAutomatically getting progress from Background worker Pin
emran83421-Feb-06 22:19
emran83421-Feb-06 22:19 
AnswerRe: Automatically getting progress from Background worker Pin
StyleGuide21-Feb-06 22:49
StyleGuide21-Feb-06 22:49 
GeneralRe: Automatically getting progress from Background worker Pin
emran83421-Feb-06 23:07
emran83421-Feb-06 23:07 
Hi jonny,
Thanks for reply.


Ok, In your code,

foreach (Control control in this.Controls)
{
Console.WriteLine(control.Name.ToString());
//Update progress
this.workerReportProgress();

}

I will have to call workerReportProgress() in the lenghy work function. It is ok if my lenghty work function is lenghty just because of infinite or long numbered for loop. But What about a lenghty work which is lenghty by itself (without for loop) ! My problem is like,

void lenghyFunction()
{
sendEmail();
}

HEre, sendEMail is very lenghy itself (becasue of huge attachments etc..), now how can i call reportProgress method of BW as it is not any forloop.

Thanks and regards
Emran
GeneralRe: Automatically getting progress from Background worker Pin
J4amieC21-Feb-06 23:24
J4amieC21-Feb-06 23:24 
GeneralRe: Automatically getting progress from Background worker Pin
emran83421-Feb-06 23:32
emran83421-Feb-06 23:32 
GeneralRe: Automatically getting progress from Background worker Pin
StyleGuide21-Feb-06 23:44
StyleGuide21-Feb-06 23:44 
GeneralRe: Automatically getting progress from Background worker Pin
emran83422-Feb-06 0:01
emran83422-Feb-06 0:01 
GeneralRe: Automatically getting progress from Background worker Pin
J4amieC22-Feb-06 0:18
J4amieC22-Feb-06 0:18 
GeneralRe: Automatically getting progress from Background worker Pin
StyleGuide22-Feb-06 1:51
StyleGuide22-Feb-06 1:51 
GeneralRe: Automatically getting progress from Background worker Pin
emran83422-Feb-06 15:08
emran83422-Feb-06 15:08 
QuestionC# DataGridView Cell Focus Pin
StyleGuide21-Feb-06 22:06
StyleGuide21-Feb-06 22:06 
AnswerRe: C# DataGridView Cell Focus Pin
StyleGuide21-Feb-06 22:52
StyleGuide21-Feb-06 22:52 
Questionconverting string to byte Pin
leelaraj21-Feb-06 21:55
leelaraj21-Feb-06 21:55 
GeneralRe: converting string to byte Pin
leppie21-Feb-06 22:40
leppie21-Feb-06 22:40 
AnswerRe: converting string to byte Pin
Le centriste22-Feb-06 1:20
Le centriste22-Feb-06 1:20 
AnswerRe: converting string to byte Pin
User 665822-Feb-06 1:25
User 665822-Feb-06 1:25 
QuestionHow do I use one form showing to different look Pin
Tony_Joh21-Feb-06 20:28
Tony_Joh21-Feb-06 20:28 
AnswerRe: How do I use one form showing to different look Pin
Vikram A Punathambekar21-Feb-06 21:20
Vikram A Punathambekar21-Feb-06 21:20 
GeneralRe: How do I use one form showing to different look Pin
Tony_Joh21-Feb-06 22:20
Tony_Joh21-Feb-06 22:20 
GeneralRe: How do I use one form showing to different look Pin
darkelv22-Feb-06 0:59
darkelv22-Feb-06 0:59 

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.