How to convert HEX to vb.net

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • malek
    New Member
    • Mar 2010
    • 1

    How to convert HEX to vb.net

    how convert hex to vb.net
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    "Hex" is short form for the word "Hexadecima l".
    Hexadecimal is a number in base 16.
    It uses sixteen symbols: 0–9 to represent values zero to nine,and A, B, C, D, E, F to represent values ten to fifteen.

    how convert hex to vb.net
    VB.NET is a programming language. It is not a number. You cannot covert a Hex number into a programming language.

    Your question does not make sense.

    You are probably asking how to convert an Integer into Hexadecimal using VB.NET...

    To do this you can use Convert:
    Code:
    Dim i As Integer = 255
    Dim binary As String = Convert.ToString(i, 2)
    Dim hex AsString = Convert.ToString(i, 16)
    Dim binaryToInt As Int32 = Convert.ToInt32(binary, 2)
    Dim hexToInt As Int32 = Convert.ToInt32(hex, 16)
    -Frinny

    Comment

    Working...