Results 1 to 2 of 2

Thread: DefaultProprieties

  1. #1

    Thread Starter
    yay gay PT Exorcist's Avatar
    Join Date
    Apr 2002
    Location
    . . . my reason of shame
    Posts
    2,729

    DefaultProprieties

    I have a user control who has a listbox in it. i want that when the user changes the propriety BackColor of the control it automaticly changes the background of the listbox too. It's all ok but when i put the control in the form1 for testing the background appears as "ControlLight" when i've put the defaultvalue as Colors.Red!!!!
    PHP Code:
            [DefaultValue("SystemColors.Red")]
            public 
    override Color BackColor
            
    {
                
    get
                
    {
                    return 
    _backColor;
                }
                
    set
                
    {
                    
    listBox1.BackColor value;
                    
    _backColor value;
                }
            } 
    \m/\m/

  2. #2

    Thread Starter
    yay gay PT Exorcist's Avatar
    Join Date
    Apr 2002
    Location
    . . . my reason of shame
    Posts
    2,729
    hmmm nvm problem solved
    \m/\m/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width