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

C#

 
GeneralRe: PBX Call Log Pin
Simon_Whale30-Apr-15 2:34
Simon_Whale30-Apr-15 2:34 
GeneralRe: PBX Call Log Pin
Member 1011228330-Apr-15 2:41
Member 1011228330-Apr-15 2:41 
GeneralRe: PBX Call Log PinPopular
F-ES Sitecore30-Apr-15 3:15
professionalF-ES Sitecore30-Apr-15 3:15 
AnswerRe: PBX Call Log Pin
BillWoodruff30-Apr-15 1:56
professionalBillWoodruff30-Apr-15 1:56 
QuestionWinForms Update A Dialog Pin
Kevin Marois29-Apr-15 9:24
professionalKevin Marois29-Apr-15 9:24 
GeneralRe: WinForms Update A Dialog Pin
Sascha Lefèvre29-Apr-15 9:34
professionalSascha Lefèvre29-Apr-15 9:34 
GeneralRe: WinForms Update A Dialog Pin
Kevin Marois29-Apr-15 9:37
professionalKevin Marois29-Apr-15 9:37 
AnswerRe: WinForms Update A Dialog Pin
Sascha Lefèvre29-Apr-15 10:32
professionalSascha Lefèvre29-Apr-15 10:32 
Coder (Hired) wrote:
As I said I my post-the value IS being set
Sorry, I'm tired.

You should run your download-method in a background-worker *. When running it on the UI-thread, the UI-thread can't repaint the progress bar.

At least not reliably. Actually I'm a bit confused myself now. I would have assumed repainting wouldn't happen at all until your download-method finishes. But I just set up a quick test-project and the progress bar-repainting did work "partially" (stuttering) while the UI thread was executing the setprogress-sleep-loop. Maybe someone else coming along here can shed some light on that.

However, running lengthy processes in a background worker * and not on the UI-thread is advisable in any case to keep your UI responsive and will definitely solve your issue.

* or some other multithreading-flavor
If the brain were so simple we could understand it, we would be so simple we couldn't. — Lyall Watson

GeneralRe: WinForms Update A Dialog Pin
Kevin Marois29-Apr-15 10:37
professionalKevin Marois29-Apr-15 10:37 
GeneralRe: WinForms Update A Dialog Pin
Sascha Lefèvre29-Apr-15 10:57
professionalSascha Lefèvre29-Apr-15 10:57 
GeneralRe: WinForms Update A Dialog Pin
Kevin Marois29-Apr-15 10:58
professionalKevin Marois29-Apr-15 10:58 
GeneralRe: WinForms Update A Dialog Pin
Sascha Lefèvre29-Apr-15 11:17
professionalSascha Lefèvre29-Apr-15 11:17 
GeneralRe: WinForms Update A Dialog Pin
Kevin Marois29-Apr-15 11:23
professionalKevin Marois29-Apr-15 11:23 
GeneralRe: WinForms Update A Dialog Pin
Sascha Lefèvre29-Apr-15 11:50
professionalSascha Lefèvre29-Apr-15 11:50 
GeneralRe: WinForms Update A Dialog Pin
Kevin Marois29-Apr-15 11:54
professionalKevin Marois29-Apr-15 11:54 
GeneralRe: WinForms Update A Dialog Pin
Kevin Marois29-Apr-15 12:23
professionalKevin Marois29-Apr-15 12:23 
AnswerRe: WinForms Update A Dialog Pin
Sascha Lefèvre29-Apr-15 13:00
professionalSascha Lefèvre29-Apr-15 13:00 
GeneralRe: WinForms Update A Dialog Pin
Kevin Marois29-Apr-15 13:16
professionalKevin Marois29-Apr-15 13:16 
GeneralRe: WinForms Update A Dialog Pin
Sascha Lefèvre29-Apr-15 13:33
professionalSascha Lefèvre29-Apr-15 13:33 
QuestionFit text to label without changing label font and size Pin
Al-Rehman29-Apr-15 2:55
Al-Rehman29-Apr-15 2:55 
AnswerRe: Fit text to label without changing label font and size Pin
OriginalGriff29-Apr-15 4:58
mveOriginalGriff29-Apr-15 4:58 
GeneralRe: Fit text to label without changing label font and size Pin
Al-Rehman29-Apr-15 5:10
Al-Rehman29-Apr-15 5:10 
GeneralRe: Fit text to label without changing label font and size Pin
Sascha Lefèvre29-Apr-15 5:14
professionalSascha Lefèvre29-Apr-15 5:14 
GeneralRe: Fit text to label without changing label font and size Pin
Pete O'Hanlon29-Apr-15 5:15
mvePete O'Hanlon29-Apr-15 5:15 
GeneralRe: Fit text to label without changing label font and size Pin
OriginalGriff29-Apr-15 5:22
mveOriginalGriff29-Apr-15 5:22 

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.