Click here to Skip to main content
15,905,232 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# Textbox Pin
Pavlex410-Dec-16 0:46
Pavlex410-Dec-16 0:46 
GeneralRe: C# Textbox Pin
OriginalGriff10-Dec-16 0:59
mveOriginalGriff10-Dec-16 0:59 
GeneralRe: C# Textbox Pin
Pavlex410-Dec-16 1:08
Pavlex410-Dec-16 1:08 
GeneralRe: C# Textbox Pin
OriginalGriff10-Dec-16 1:12
mveOriginalGriff10-Dec-16 1:12 
GeneralRe: C# Textbox Pin
Pavlex410-Dec-16 1:22
Pavlex410-Dec-16 1:22 
GeneralRe: C# Textbox Pin
OriginalGriff10-Dec-16 1:44
mveOriginalGriff10-Dec-16 1:44 
QuestionNew to c# Pin
Member 19561089-Dec-16 4:14
Member 19561089-Dec-16 4:14 
AnswerRe: New to c# Pin
ZurdoDev9-Dec-16 4:54
professionalZurdoDev9-Dec-16 4:54 
AnswerRe: New to c# Pin
ZurdoDev9-Dec-16 4:55
professionalZurdoDev9-Dec-16 4:55 
AnswerRe: New to c# Pin
Eddy Vluggen9-Dec-16 7:28
professionalEddy Vluggen9-Dec-16 7:28 
AnswerRe: New to c# Pin
Gerry Schmitz9-Dec-16 8:06
mveGerry Schmitz9-Dec-16 8:06 
GeneralRe: New to c# Pin
Member 19561089-Dec-16 8:25
Member 19561089-Dec-16 8:25 
GeneralRe: New to c# Pin
Gerry Schmitz9-Dec-16 8:49
mveGerry Schmitz9-Dec-16 8:49 
QuestionError finding specific user in Active Directory Pin
Member 128939288-Dec-16 5:38
Member 128939288-Dec-16 5:38 
AnswerRe: Error finding specific user in Active Directory Pin
Nathan Minier9-Dec-16 1:34
professionalNathan Minier9-Dec-16 1:34 
QuestionLabel not getting updated. Pin
manju 37-Dec-16 21:02
manju 37-Dec-16 21:02 
AnswerRe: Label not getting updated. Pin
Richard MacCutchan7-Dec-16 21:53
mveRichard MacCutchan7-Dec-16 21:53 
AnswerRe: Label not getting updated. Pin
OriginalGriff7-Dec-16 22:01
mveOriginalGriff7-Dec-16 22:01 
AnswerRe: Label not getting updated. Pin
Michael_Davies7-Dec-16 22:54
Michael_Davies7-Dec-16 22:54 
GeneralRe: Label not getting updated. Pin
OriginalGriff7-Dec-16 23:59
mveOriginalGriff7-Dec-16 23:59 
GeneralRe: Label not getting updated. Pin
Michael_Davies8-Dec-16 0:16
Michael_Davies8-Dec-16 0:16 
GeneralRe: Label not getting updated. Pin
Richard Deeming8-Dec-16 1:50
mveRichard Deeming8-Dec-16 1:50 
OriginalGriff wrote:
nothing that DoEvents would affect

Are you sure about that?

Have a look at the WindowText property setter[^]:
C#
if (value == null) value = "";
if (!WindowText.Equals(value)) {
    if (IsHandleCreated) {
        UnsafeNativeMethods.SetWindowText(new HandleRef(window, Handle), value);
    }
    else {
        if (value.Length == 0) {
            text = null;
        }
        else {
            text = value;
        }
    }
}

That call to UnsafeNativeMethods.SetWindowText will require the message loop to pump events before the control is updated.

Which is exactly what DoEvents was intended for. Smile | :)



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


GeneralRe: Label not getting updated. Pin
OriginalGriff8-Dec-16 2:28
mveOriginalGriff8-Dec-16 2:28 
GeneralRe: Label not getting updated. Pin
Dave Kreskowiak8-Dec-16 4:17
mveDave Kreskowiak8-Dec-16 4:17 
AnswerRe: Label not getting updated. Pin
V.8-Dec-16 3:44
professionalV.8-Dec-16 3:44 

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.