Results 1 to 6 of 6

Thread: DefaultValue

Threaded View

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2005
    Location
    Cebu
    Posts
    607

    Resolved DefaultValue

    What's wrong with
    Code:
            Color color1;
            [DefaultValue(Color.LightBlue)]
            public Color GradientColor1
            {
                get{ return color1;}
                set{ color1=value;}
            }
    ?

    This gives me F:\My Project\c#\nebzie\swing\NPanel.cs(27): An attribute argument must be a constant expression, typeof expression or array creation expression.
    Last edited by nebulom; Feb 10th, 2005 at 04:57 AM.

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