Results 1 to 13 of 13

Thread: RESOLVED - is string a valid color ?

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 2005
    Location
    UK
    Posts
    127

    RESOLVED - is string a valid color ?

    im stuck can anyone help me out there has to be a better way to determin if a string is or is not a colour ....

    this is what i've found but im not using it ....

    Code:
    Dim mycc As New ColorConverter
    
      Try
                    Dim lbl As New Label
                    lbl.BackColor = mycc.ConvertFrom($STRING)
                    IsColour = True
                Catch ex As Exception
                    IsColour = False
                    Return True
                End Try
    Last edited by illskills; Feb 15th, 2010 at 08:01 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