Click here to Skip to main content
15,881,803 members
Home / Discussions / C#
   

C#

 
GeneralRe: why memory is increasing in just a for loop? Pin
Le@rner26-Feb-15 21:16
Le@rner26-Feb-15 21:16 
GeneralRe: why memory is increasing in just a for loop? Pin
OriginalGriff26-Feb-15 21:21
mveOriginalGriff26-Feb-15 21:21 
GeneralRe: why memory is increasing in just a for loop? Pin
Pete O'Hanlon26-Feb-15 22:24
mvePete O'Hanlon26-Feb-15 22:24 
GeneralRe: why memory is increasing in just a for loop? Pin
Le@rner27-Feb-15 0:22
Le@rner27-Feb-15 0:22 
GeneralRe: why memory is increasing in just a for loop? Pin
Pete O'Hanlon27-Feb-15 1:45
mvePete O'Hanlon27-Feb-15 1:45 
GeneralRe: why memory is increasing in just a for loop? Pin
F-ES Sitecore27-Feb-15 2:38
professionalF-ES Sitecore27-Feb-15 2:38 
Questionhow to continuously write text to a label in C# Pin
Member 1068390226-Feb-15 6:33
Member 1068390226-Feb-15 6:33 
AnswerRe: how to continuously write text to a label in C# Pin
manchanx26-Feb-15 7:52
professionalmanchanx26-Feb-15 7:52 
The reason why it's not working as you expect is that the thread executing your event handler method is also responsible for updating the screen - which it can't while it's executing the event handler method. Once it's done executing the event handler it updates the screen - once, and obviously with the last value that was assigned to the label text. One solution for this would be to employ a Timer (MSDN-Doc[^] / Codeproject Tutorial[^]) which provides you a simple way of changing the label text and updating the screen simultaneously.

I guess this was a desperate measure:
lblCount.Show();
- you don't need to do that each time you update the label text.
GeneralRe: how to continuously write text to a label in C# Pin
Member 1068390226-Feb-15 9:26
Member 1068390226-Feb-15 9:26 
AnswerRe: how to continuously write text to a label in C# Pin
HKHerron26-Feb-15 9:38
professionalHKHerron26-Feb-15 9:38 
GeneralRe: how to continuously write text to a label in C# Pin
Member 1068390226-Feb-15 10:07
Member 1068390226-Feb-15 10:07 
GeneralRe: how to continuously write text to a label in C# Pin
HKHerron26-Feb-15 10:20
professionalHKHerron26-Feb-15 10:20 
GeneralRe: how to continuously write text to a label in C# Pin
Member 1068390226-Feb-15 10:46
Member 1068390226-Feb-15 10:46 
AnswerRe: how to continuously write text to a label in C# Pin
Member 1068390226-Feb-15 11:09
Member 1068390226-Feb-15 11:09 
GeneralRe: how to continuously write text to a label in C# Pin
V.27-Feb-15 0:39
professionalV.27-Feb-15 0:39 
AnswerRe: how to continuously write text to a label in C# Pin
Member 857809327-Feb-15 9:07
Member 857809327-Feb-15 9:07 
GeneralRe: how to continuously write text to a label in C# Pin
Member 1068390227-Feb-15 11:36
Member 1068390227-Feb-15 11:36 
Questionc# Soap Web service header Pin
Info service26-Feb-15 5:36
Info service26-Feb-15 5:36 
QuestionConfused on method type Pin
Truck5326-Feb-15 3:58
Truck5326-Feb-15 3:58 
AnswerRe: Confused on method type Pin
OriginalGriff26-Feb-15 4:22
mveOriginalGriff26-Feb-15 4:22 
AnswerRe: Confused on method type Pin
manchanx26-Feb-15 5:09
professionalmanchanx26-Feb-15 5:09 
QuestionHow memory is allocated in .Net application Pin
Tridip Bhattacharjee26-Feb-15 2:56
professionalTridip Bhattacharjee26-Feb-15 2:56 
AnswerRe: How memory is allocated in .Net application PinPopular
OriginalGriff26-Feb-15 3:14
mveOriginalGriff26-Feb-15 3:14 
GeneralRe: How memory is allocated in .Net application Pin
manchanx26-Feb-15 4:05
professionalmanchanx26-Feb-15 4:05 
GeneralRe: How memory is allocated in .Net application Pin
OriginalGriff26-Feb-15 4:11
mveOriginalGriff26-Feb-15 4:11 

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.