in

C1 Community

ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

C1Combo EditorBackColor

Last post 04-21-2008 3:28 AM by C1_JohnAd. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 02-15-2008 3:42 AM

    C1Combo EditorBackColor

    Hello,

    I inherited a control from C1Combo and override two methods as follows :

            protected override void OnEnter(EventArgs e) {
                base.OnEnter(e);
                this.EditorBackColor = Color.Red;
            }
            protected override void OnLeave(EventArgs e) {
                base.OnLeave(e);
                this.EditorBackColor = Color.White;
            }

    When the control gets the focus, it changes the editor back color to red, but only for a fraction of a second, then it changes back to normal color. How can I set the EditorBackColor to a color that will remain ?
    (I use C1.Win.C1List.2.dll version 2.1.20072.126)



    Thanks for your time,
    DM
     

  • 04-21-2008 3:28 AM In reply to

    Re: C1Combo EditorBackColor

    Hi DM,
     
    I would suggest you to try the newer build of C1List for .Net 2.0 which you can download from the following location.
     
    Hope this helps.
     
    Regards,
    John Adams
     
     
     
    <daniel.mihaita> wrote in message news:201974@10.0.1.98...

    Hello,

    I inherited a control from C1Combo and override two methods as follows :

            protected override void OnEnter(EventArgs e) {
                base.OnEnter(e);
                this.EditorBackColor = Color.Red;
            }
            protected override void OnLeave(EventArgs e) {
                base.OnLeave(e);
                this.EditorBackColor = Color.White;
            }

    When the control gets the focus, it changes the editor back color to red, but only for a fraction of a second, then it changes back to normal color. How can I set the EditorBackColor to a color that will remain ?
    (I use C1.Win.C1List.2.dll version 2.1.20072.126)



    Thanks for your time,
    DM
     



    http://helpcentral.componentone.com/cs/forums/p/74333/201974.aspx#201974

Page 1 of 1 (2 items)
Contact ComponentOne: 1.800.858.2739 ©1987-2008 ComponentOne LLC All Rights Reserved.