VB.NET Hex to Color

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • SeasCommander
    New Member
    • Sep 2007
    • 8

    VB.NET Hex to Color

    Hi, I have a hex in the form: "D57BF2" I need to convert to a useable richtextbox color. Thanks
  • hbxtlhx
    New Member
    • Sep 2007
    • 10

    #2
    Color color = Color.FromArgb( int.Parse("D57B F2", System.Globaliz ation.NumberSty les.HexNumber)) ;
    Console.WriteLi ne(color);

    ----------------------------------------
    out put:
    Color [A=0, R=213, G=123, B=242]

    Comment

    Working...