Color Problem

Results 1 to 2 of 2

Thread: Color Problem

  1. #1
    Join Date
    Dec 1969

    Default Color Problem

    Why do I keep getting this error message:<BR><BR>Color(object, System.EventArgs)&#039; denotes a &#039;method&#039; which is not valid in the given context<BR><BR>when I try to do something like:<BR><BR>Color myColor = Color.Brown;<BR><BR>From the docs I&#039;ve read, that should be perfectly acceptable code (stupid programming language)

  2. #2
    Join Date
    Dec 1969

    Default RE: Color Problem

    &#039;Color&#039; in this case is a type.<BR><BR>when you create a method also called Color you&#039;re making the namespaces clash. just change the name of the method.

Posting Permissions

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