VB color value

Discussion in 'Questions (Windows Mobile)' started by Leginus, Jan 18, 2008.

  1. Leginus

    Leginus Member Licensed User

    I have searched the forums but cannot seem to find an answer.
    Is it possible to convert the long color values from vb into rgb??

    e.g. txtTestBox.BackColor = 16777215

    I found a solution on google but it was using the Hex keyword and I don't think that is supported yet.

    thanks
     
  2. dzt

    dzt Active Member Licensed User

    It is supported. See Bitwise library
     
  3. specci48

    specci48 Well-Known Member Licensed User

  4. Leginus

    Leginus Member Licensed User

    Thanks that is just what i was looking for. Obviously i didnt read the forum well enough :sign0104:
     
  5. Erel

    Erel Administrator Staff Member Licensed User

    You could use the GetRGB method.
     
  6. specci48

    specci48 Well-Known Member Licensed User

    Oh yes, haven't remembered this new feature ... :sign0013:
     
  7. Leginus

    Leginus Member Licensed User

    Thanks all, I have also noticed that I don't actually need to convert it either. I can use the same value and it works, although RGB is preferable personally.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice