Click here to Skip to main content
15,843,031 members
Home / Discussions / C#
   

C#

 
GeneralRe: Changing the text of label Pin
Soundman32.23-May-07 1:59
Soundman32.23-May-07 1:59 
GeneralRe: Changing the text of label Pin
Dave Kreskowiak3-May-07 4:49
mveDave Kreskowiak3-May-07 4:49 
GeneralRe: Changing the text of label Pin
Rudolf Jan3-May-07 1:14
Rudolf Jan3-May-07 1:14 
GeneralRe: Changing the text of label Pin
sujithkumarsl3-May-07 1:17
sujithkumarsl3-May-07 1:17 
GeneralRe: Changing the text of label Pin
gumi_r@msn.com3-May-07 4:03
gumi_r@msn.com3-May-07 4:03 
GeneralRe: Changing the text of label Pin
Dave Kreskowiak3-May-07 4:51
mveDave Kreskowiak3-May-07 4:51 
GeneralRe: Changing the text of label [modified] Pin
gumi_r@msn.com3-May-07 7:08
gumi_r@msn.com3-May-07 7:08 
GeneralRe: Changing the text of label [modified] Pin
gumi_r@msn.com3-May-07 7:40
gumi_r@msn.com3-May-07 7:40 
Ok, I'm wrong, damn OS being smart and getting in the way Smile | :)

My app fails to refresh if I try to move the window around.

During the first 2 calls to anyMethodCall() my UI is unresponsive and my label is refreshing perfectly but then the window will start to move perfectly according to my mouse requests even if the app is still executing calls 3 and 4. And whats worse, my label stops refreshing. This is due (I guess) to Windows (Xp in this case, don't know if 2000 or previous work the same way) detecting my window as unresposive and taking action.

DoEvents() will take care of this situation becuase it will inform the OS that my window is once again valid while Refresh() will not do that and the OS will keep on thinking its not responding.

So yeah DoEvents() is the best solution because you can't rely on the user not trying to move the window around. My bad Smile | :)




-- modified at 12:48 Thursday 3rd May, 2007
GeneralRe: Changing the text of label Pin
Dave Kreskowiak3-May-07 14:33
mveDave Kreskowiak3-May-07 14:33 
GeneralRe: Changing the text of label Pin
Dave Kreskowiak3-May-07 4:48
mveDave Kreskowiak3-May-07 4:48 
GeneralRe: Changing the text of label Pin
sujithkumarsl3-May-07 9:42
sujithkumarsl3-May-07 9:42 
QuestionHow to get control of selected component. Pin
suveenmohan2-May-07 23:48
suveenmohan2-May-07 23:48 
AnswerRe: How to get control of selected component. Pin
Arun.Immanuel3-May-07 0:22
Arun.Immanuel3-May-07 0:22 
GeneralRe: How to get control of selected component. Pin
suveenmohan3-May-07 0:28
suveenmohan3-May-07 0:28 
GeneralRe: How to get control of selected component. Pin
Arun.Immanuel3-May-07 1:21
Arun.Immanuel3-May-07 1:21 
AnswerRe: How to get control of selected component. Pin
AFSEKI7-May-07 6:36
AFSEKI7-May-07 6:36 
QuestionCulture and ResourceBundle Questions Pin
Ollie19862-May-07 23:39
Ollie19862-May-07 23:39 
QuestionFinding Info about a dll using Reflection Pin
SatyaDY2-May-07 23:00
SatyaDY2-May-07 23:00 
AnswerRe: Finding Info about a dll using Reflection Pin
Vikram A Punathambekar2-May-07 23:05
Vikram A Punathambekar2-May-07 23:05 
GeneralRe: Finding Info about a dll using Reflection Pin
SatyaDY2-May-07 23:12
SatyaDY2-May-07 23:12 
GeneralRe: Finding Info about a dll using Reflection Pin
Pete O'Hanlon2-May-07 23:24
subeditorPete O'Hanlon2-May-07 23:24 
GeneralRe: Finding Info about a dll using Reflection Pin
SatyaDY2-May-07 23:32
SatyaDY2-May-07 23:32 
GeneralRe: Finding Info about a dll using Reflection Pin
Pete O'Hanlon3-May-07 1:29
subeditorPete O'Hanlon3-May-07 1:29 
GeneralRe: Finding Info about a dll using Reflection Pin
SatyaDY3-May-07 2:19
SatyaDY3-May-07 2:19 
GeneralRe: Finding Info about a dll using Reflection Pin
Pete O'Hanlon3-May-07 4:00
subeditorPete O'Hanlon3-May-07 4:00 

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.