Click here to Skip to main content
15,913,722 members
Home / Discussions / C#
   

C#

 
GeneralRe: User Feedback while main thread is busy Pin
Luc Pattyn25-Nov-09 14:45
sitebuilderLuc Pattyn25-Nov-09 14:45 
GeneralRe: User Feedback while main thread is busy Pin
Mycroft Holmes25-Nov-09 14:55
professionalMycroft Holmes25-Nov-09 14:55 
GeneralRe: User Feedback while main thread is busy {modified} Pin
Luc Pattyn25-Nov-09 15:02
sitebuilderLuc Pattyn25-Nov-09 15:02 
GeneralRe: User Feedback while main thread is busy {modified} Pin
N a v a n e e t h25-Nov-09 16:32
N a v a n e e t h25-Nov-09 16:32 
GeneralRe: User Feedback while main thread is busy {modified} Pin
Luc Pattyn25-Nov-09 16:50
sitebuilderLuc Pattyn25-Nov-09 16:50 
GeneralRe: User Feedback while main thread is busy {modified} Pin
N a v a n e e t h25-Nov-09 21:53
N a v a n e e t h25-Nov-09 21:53 
AnswerRe: User Feedback while main thread is busy Pin
DaveyM6925-Nov-09 11:03
professionalDaveyM6925-Nov-09 11:03 
AnswerRe: User Feedback while main thread is busy Pin
Shameel25-Nov-09 19:54
professionalShameel25-Nov-09 19:54 
The easiest way is to write Application.DoEvents() inside the for loop. This will allow the application to process its message queue and update the Progress bar, but the downside is that your loop can become slower by upto 10 times (or even more).

Using a BackgroundWorker is the most appropriate choice for background activities. It runs your code in a separate thread which allows your main thread to process other messages and update the GUI.
GeneralRe: User Feedback while main thread is busy Pin
Luc Pattyn26-Nov-09 0:31
sitebuilderLuc Pattyn26-Nov-09 0:31 
GeneralRe: User Feedback while main thread is busy Pin
Shameel26-Nov-09 4:55
professionalShameel26-Nov-09 4:55 
GeneralRe: User Feedback while main thread is busy Pin
Natza Mitzi26-Nov-09 8:13
Natza Mitzi26-Nov-09 8:13 
GeneralRe: User Feedback while main thread is busy Pin
Luc Pattyn26-Nov-09 8:24
sitebuilderLuc Pattyn26-Nov-09 8:24 
AnswerRe: User Feedback while main thread is busy Pin
User 260419327-Nov-09 7:08
User 260419327-Nov-09 7:08 
Questionquestion related to homework Pin
netJP12L25-Nov-09 9:45
netJP12L25-Nov-09 9:45 
AnswerRe: question related to homework Pin
PIEBALDconsult25-Nov-09 12:13
mvePIEBALDconsult25-Nov-09 12:13 
Question[Message Deleted] Pin
Slavenko8225-Nov-09 8:21
Slavenko8225-Nov-09 8:21 
AnswerRe: Query in DataSet/DataGridView Pin
I Believe In GOD25-Nov-09 9:06
I Believe In GOD25-Nov-09 9:06 
QuestionComparing Two PictureBox Pin
gamer112725-Nov-09 7:50
gamer112725-Nov-09 7:50 
AnswerRe: Comparing Two PictureBox Pin
Shameel25-Nov-09 8:07
professionalShameel25-Nov-09 8:07 
GeneralRe: Comparing Two PictureBox Pin
gamer112725-Nov-09 8:15
gamer112725-Nov-09 8:15 
AnswerRe: Comparing Two PictureBox Pin
OriginalGriff25-Nov-09 8:14
mveOriginalGriff25-Nov-09 8:14 
GeneralRe: Comparing Two PictureBox Pin
gamer112725-Nov-09 8:50
gamer112725-Nov-09 8:50 
GeneralRe: Comparing Two PictureBox Pin
harold aptroot25-Nov-09 9:01
harold aptroot25-Nov-09 9:01 
GeneralRe: Comparing Two PictureBox Pin
OriginalGriff25-Nov-09 10:39
mveOriginalGriff25-Nov-09 10:39 
GeneralRe: Comparing Two PictureBox Pin
gamer112725-Nov-09 18:29
gamer112725-Nov-09 18:29 

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.