Compare a Color?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Lars Netzel

    Compare a Color?

    How to I compare a Color, for example the CaptionBackColo r of a DataGrid to
    see if it is a specific Color?

    The "Is" or "=" does'nt work

    regards
    /Lars Netzel


  • Cor Ligthert

    #2
    Re: Compare a Color?

    Hi Lars,

    That intrest me, why would you want to know what is the colour?

    You can test it by the way, by doing it tostring and than normal with the
    =.

    I hope this helps?

    Cor
    [color=blue]
    > How to I compare a Color, for example the CaptionBackColo r of a DataGrid[/color]
    to[color=blue]
    > see if it is a specific Color?
    >
    > The "Is" or "=" does'nt work
    >
    > regards
    > /Lars Netzel
    >
    >[/color]


    Comment

    • Mick Doherty

      #3
      Re: Compare a Color?

      SomeColor.Equal s(SomeOtherColo r)

      --
      Mick Doherty



      "Lars Netzel" <[stop_spam]@host.topdomain > wrote in message
      news:%23yyOYtsT EHA.2544@TK2MSF TNGP10.phx.gbl. ..[color=blue]
      > How to I compare a Color, for example the CaptionBackColo r of a DataGrid[/color]
      to[color=blue]
      > see if it is a specific Color?
      >
      > The "Is" or "=" does'nt work
      >
      > regards
      > /Lars Netzel
      >
      >[/color]


      ---
      Outgoing mail is certified Virus Free.
      Checked by AVG anti-virus system (http://www.grisoft.com).
      Version: 6.0.701 / Virus Database: 458 - Release Date: 07/06/2004


      Comment

      • Lars Netzel

        #4
        Re: Compare a Color?

        Cause I have a Settings Feature where you can select colors in the datagrids
        to format yourself that is saved to the registry. ButIf I run the
        application the first time, the registry entries are not there and the
        Loaded color will then be transperent. So I need to check if it is
        transperent, then don't load the settings.

        I know I could also check if the Registry Key exists or even during the
        installation, add the registry key, but for now I wanted to check it on the
        color!

        Thanx!

        /Lars


        "Cor Ligthert" <notfirstname@p lanet.nl> skrev i meddelandet
        news:uns34BtTEH A.3332@TK2MSFTN GP12.phx.gbl...[color=blue]
        > Hi Lars,
        >
        > That intrest me, why would you want to know what is the colour?
        >
        > You can test it by the way, by doing it tostring and than normal with the
        > =.
        >
        > I hope this helps?
        >
        > Cor
        >[color=green]
        > > How to I compare a Color, for example the CaptionBackColo r of a DataGrid[/color]
        > to[color=green]
        > > see if it is a specific Color?
        > >
        > > The "Is" or "=" does'nt work
        > >
        > > regards
        > > /Lars Netzel
        > >
        > >[/color]
        >
        >[/color]


        Comment

        • Cor Ligthert

          #5
          Re: Compare a Color?

          Hi Lars,

          You knew what would have been my answer

          :-)

          Cor


          Comment

          • Lars Netzel

            #6
            Re: Compare a Color?

            I asumed, yes :)

            /Lars
            "Cor Ligthert" <notfirstname@p lanet.nl> skrev i meddelandet
            news:OHzuxVuTEH A.2416@TK2MSFTN GP12.phx.gbl...[color=blue]
            > Hi Lars,
            >
            > You knew what would have been my answer
            >
            > :-)
            >
            > Cor
            >
            >[/color]


            Comment

            Working...