Click here to Skip to main content
15,886,919 members
Home / Discussions / C#
   

C#

 
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 
Generally speaking, if you need DoEvents then there is something very wrong with your application design! Laugh | :laugh:
In this case it won't help anyway: the Text property is just a string, if you look at ethe reference source:
C#
/// <include file='doc\Label.uex' path='docs/doc[@for="Label.Text"]/*' />
/// <devdoc>
///    <para>
///       Gets or sets the text in the Label. Since we can have multiline support
///       this property just overides the base to pluck in the Multiline editor.
///    </para>
/// </devdoc>
[
Editor("System.ComponentModel.Design.MultilineStringEditor, " + AssemblyRef.SystemDesign, typeof(UITypeEditor)),
SettingsBindable(true)
]
public override string Text {
    get {
        return base.Text;
    }
    set {
        base.Text = value;
    }
}

And the base class implementation (Control):
C#
/// <include file='doc\Control.uex' path='docs/doc[@for="Control.Text"]/*' />
/// <devdoc>
///     The current text associated with this control.
/// </devdoc>
[
SRCategory(SR.CatAppearance),
Localizable(true),
Bindable(true),
DispId(NativeMethods.ActiveX.DISPID_TEXT),
SRDescription(SR.ControlTextDescr)
]
public virtual string Text {
    get {
        if (CacheTextInternal) {
            return(text == null) ? "" : text;
        }
        else {
            return WindowText;
        }
    }

    set {
        if (value == null) {
            value = "";
        }

        if (value == Text) {
            return;
        }

        if (CacheTextInternal) {
            text = value;
        }
        WindowText = value;
        OnTextChanged(EventArgs.Empty);

        if( this.IsMnemonicsListenerAxSourced ){
            for( Control ctl = this; ctl != null; ctl = ctl.ParentInternal ) {
                ActiveXImpl activeXImpl = (ActiveXImpl)ctl.Properties.GetObject(PropActiveXImpl);
                if( activeXImpl != null ) {
                    activeXImpl.UpdateAccelTable();
                    break;
                }
            }
        }

    }
}
Doesn't do anything exotic with it either, certainly nothing that DoEvents would affect.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

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 
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 
Questionkinect v2 Pin
Member 128901727-Dec-16 5:07
Member 128901727-Dec-16 5:07 
AnswerRe: kinect v2 Pin
Afzaal Ahmad Zeeshan7-Dec-16 6:42
professionalAfzaal Ahmad Zeeshan7-Dec-16 6:42 
GeneralRe: kinect v2 Pin
Member 128901729-Dec-16 22:59
Member 128901729-Dec-16 22:59 
AnswerRe: kinect v2 Pin
Eddy Vluggen7-Dec-16 7:28
professionalEddy Vluggen7-Dec-16 7:28 
GeneralRe: kinect v2 Pin
Member 128901729-Dec-16 23:04
Member 128901729-Dec-16 23:04 
AnswerRe: kinect v2 Pin
Gerry Schmitz7-Dec-16 8:22
mveGerry Schmitz7-Dec-16 8:22 
QuestionWinForms CheckFirstRun() Pin
f.loschiavo5-Dec-16 15:01
f.loschiavo5-Dec-16 15:01 
AnswerRe: WinForms CheckFirstRun() Pin
Midi_Mick5-Dec-16 15:15
professionalMidi_Mick5-Dec-16 15:15 
AnswerRe: WinForms CheckFirstRun() Pin
Jon McKee5-Dec-16 18:42
professionalJon McKee5-Dec-16 18:42 
AnswerRe: WinForms CheckFirstRun() Pin
f.loschiavo6-Dec-16 12:51
f.loschiavo6-Dec-16 12:51 
QuestionSetup Web Folder On IIS Pin
MadDashCoder5-Dec-16 10:49
MadDashCoder5-Dec-16 10:49 
AnswerRe: Setup Web Folder On IIS Pin
Gerry Schmitz5-Dec-16 11:59
mveGerry Schmitz5-Dec-16 11:59 

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.