Click here to Skip to main content
15,915,319 members
Home / Discussions / C#
   

C#

 
GeneralRe: Split a text to 5 string Pin
Dr.Walt Fair, PE24-Mar-10 5:22
professionalDr.Walt Fair, PE24-Mar-10 5:22 
GeneralRe: Split a text to 5 string Pin
Chucky6424-Mar-10 5:26
Chucky6424-Mar-10 5:26 
GeneralRe: Split a text to 5 string Pin
Dr.Walt Fair, PE24-Mar-10 5:35
professionalDr.Walt Fair, PE24-Mar-10 5:35 
GeneralRe: Split a text to 5 string Pin
Luc Pattyn24-Mar-10 5:42
sitebuilderLuc Pattyn24-Mar-10 5:42 
GeneralRe: Split a text to 5 string Pin
Dr.Walt Fair, PE24-Mar-10 5:48
professionalDr.Walt Fair, PE24-Mar-10 5:48 
Questionstudent blog for recruitment Pin
sireeshabalineni24-Mar-10 3:59
sireeshabalineni24-Mar-10 3:59 
AnswerRe: student blog for recruitment Pin
Keith Barrow24-Mar-10 4:02
professionalKeith Barrow24-Mar-10 4:02 
AnswerRe: student blog for recruitment Pin
Calla24-Mar-10 4:39
Calla24-Mar-10 4:39 
AnswerRe: student blog for recruitment Pin
PIEBALDconsult24-Mar-10 5:33
mvePIEBALDconsult24-Mar-10 5:33 
QuestionDifference between C and Visual C. Pin
Razanust24-Mar-10 3:03
Razanust24-Mar-10 3:03 
AnswerRe: Difference between C and Visual C. Pin
Not Active24-Mar-10 3:05
mentorNot Active24-Mar-10 3:05 
GeneralRe: Difference between C and Visual C. Pin
Som Shekhar24-Mar-10 4:42
Som Shekhar24-Mar-10 4:42 
GeneralRe: Difference between C and Visual C. Pin
Pete O'Hanlon24-Mar-10 7:48
mvePete O'Hanlon24-Mar-10 7:48 
GeneralRe: Difference between C and Visual C. Pin
Som Shekhar24-Mar-10 7:53
Som Shekhar24-Mar-10 7:53 
AnswerRe: Difference between C and Visual C. Pin
yu-jian26-Mar-10 7:14
yu-jian26-Mar-10 7:14 
QuestionWorking with the UI while multithreading Pin
Islorvat24-Mar-10 3:02
Islorvat24-Mar-10 3:02 
AnswerRe: Working with the UI while multithreading Pin
Luc Pattyn24-Mar-10 3:31
sitebuilderLuc Pattyn24-Mar-10 3:31 
you got it wrong.
Having Control.InvokeRequired and Control.Invoke the way you did is just fine, however they cause the else block in ProgressUpdate to execute on the GUI thread (that was the intention all along), so that else block should NOT contain lengthy operations nor calls to Thread.Sleep

You should perform all timing by:
- using timers;
- OR using whatever you like on YOUR threads;
- but not by using Thread.Sleep on the GUI thread.

So a better approach would be to have the thread execute some method, say Progress, which contains any delay you like, and calls ProgressUpdate (the new one without any Sleep) to update the GUI.

Smile | :)

AnswerRe: Working with the UI while multithreading Pin
Tim Weckx24-Mar-10 3:58
Tim Weckx24-Mar-10 3:58 
GeneralRe: Working with the UI while multithreading Pin
Islorvat24-Mar-10 4:27
Islorvat24-Mar-10 4:27 
QuestionNews feed popup desktop application Pin
Sherif W. Girgis24-Mar-10 2:39
Sherif W. Girgis24-Mar-10 2:39 
AnswerRe: News feed popup desktop application Pin
Not Active24-Mar-10 3:03
mentorNot Active24-Mar-10 3:03 
QuestionTo save the file Pin
v17.poornima24-Mar-10 2:01
v17.poornima24-Mar-10 2:01 
AnswerRe: To save the file Pin
Richard MacCutchan24-Mar-10 3:43
mveRichard MacCutchan24-Mar-10 3:43 
Questionembedd flash in winform in mono .net Pin
melihcicek24-Mar-10 2:01
melihcicek24-Mar-10 2:01 
AnswerRe: embedd flash in winform in mono .net Pin
CDP180224-Mar-10 2:13
CDP180224-Mar-10 2:13 

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.