Click here to Skip to main content
15,892,965 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to create a child process in C#? Pin
martingeorgiev1-Jun-10 5:32
martingeorgiev1-Jun-10 5:32 
GeneralRe: How to create a child process in C#? Pin
PIEBALDconsult1-Jun-10 5:39
mvePIEBALDconsult1-Jun-10 5:39 
GeneralRe: How to create a child process in C#? Pin
martingeorgiev1-Jun-10 5:31
martingeorgiev1-Jun-10 5:31 
GeneralRe: How to create a child process in C#? Pin
PIEBALDconsult1-Jun-10 5:44
mvePIEBALDconsult1-Jun-10 5:44 
Questiondisplaying progress bar in background worker thread C# Pin
evrajo31-May-10 23:32
evrajo31-May-10 23:32 
AnswerRe: displaying progress bar in background worker thread C# Pin
Pete O'Hanlon31-May-10 23:46
mvePete O'Hanlon31-May-10 23:46 
GeneralRe: displaying progress bar in background worker thread C# Pin
evrajo31-May-10 23:51
evrajo31-May-10 23:51 
GeneralRe: displaying progress bar in background worker thread C# Pin
evrajo1-Jun-10 0:05
evrajo1-Jun-10 0:05 
when user clicks an item in the toolbar , the main thread fetches the corresponding data. Meanwhile the background worker thread is supposed to show progress . But instead it is activated only after the fetching is done. any suggestions on how to improve this?
A snippet of my code is as given below:
< my code>

private void toolStripMain_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
{
bwProgress.RunWorkerAsync();
}

private void bwProgress_DoWork(object sender, DoWorkEventArgs e)
{
// update the progress bar
for (int i = 0; i <= 100; i+=10)
{
bwProgress.ReportProgress(i);
}
}

private void bwProgress_ProgressChanged(object sender, ProgressChangedEventArgs e)
{
toolStripProgressBar1.Visible = true;
toolStripProgressBar1.Value = e.ProgressPercentage;
}

private void bwProgress_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
{
toolStripProgressBar1.Style = ProgressBarStyle.Blocks;
toolStripProgressBar1.Value = 100;
}
GeneralRe: displaying progress bar in background worker thread C# Pin
Pete O'Hanlon1-Jun-10 0:08
mvePete O'Hanlon1-Jun-10 0:08 
GeneralRe: displaying progress bar in background worker thread C# Pin
Pete O'Hanlon1-Jun-10 0:06
mvePete O'Hanlon1-Jun-10 0:06 
AnswerRe: displaying progress bar in background worker thread C# Pin
DaveyM691-Jun-10 0:31
professionalDaveyM691-Jun-10 0:31 
AnswerRe: displaying progress bar in background worker thread C# Pin
PIEBALDconsult1-Jun-10 4:38
mvePIEBALDconsult1-Jun-10 4:38 
QuestionExcel Workbook Save copy error in Windows 2003 server Pin
kumuda.t31-May-10 23:27
kumuda.t31-May-10 23:27 
AnswerRe: Excel Workbook Save copy error in Windows 2003 server Pin
Henry Minute1-Jun-10 0:54
Henry Minute1-Jun-10 0:54 
Questionrecord voice and phone number of central phone device Pin
mr.mohsen31-May-10 21:53
mr.mohsen31-May-10 21:53 
QuestionHelp required in Threading.. Pin
NetMan201231-May-10 21:36
NetMan201231-May-10 21:36 
AnswerRe: Help required in Threading.. Pin
Stanciu Vlad31-May-10 21:46
Stanciu Vlad31-May-10 21:46 
AnswerRe: Help required in Threading.. Pin
mr.mohsen31-May-10 21:56
mr.mohsen31-May-10 21:56 
GeneralRe: Help required in Threading.. Pin
NetMan20121-Jun-10 1:14
NetMan20121-Jun-10 1:14 
GeneralRe: Help required in Threading.. Pin
#realJSOP1-Jun-10 1:41
mve#realJSOP1-Jun-10 1:41 
AnswerRe: Help required in Threading.. Pin
Mycroft Holmes31-May-10 21:57
professionalMycroft Holmes31-May-10 21:57 
AnswerRe: Help required in Threading.. Pin
Henry Minute1-Jun-10 0:57
Henry Minute1-Jun-10 0:57 
GeneralRe: Help required in Threading.. Pin
Luc Pattyn1-Jun-10 2:51
sitebuilderLuc Pattyn1-Jun-10 2:51 
GeneralRe: Help required in Threading.. Pin
Henry Minute1-Jun-10 3:09
Henry Minute1-Jun-10 3:09 
GeneralRe: Help required in Threading.. Pin
harold aptroot1-Jun-10 3:24
harold aptroot1-Jun-10 3:24 

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.