HOW TO CONVERT STRING VALUE TO HEXA VALUE IN VB.NET

Madhu Mitha

Total Post:31

Points:217
Posted by  Madhu Mitha
VB.Net 
 1090  View(s)
Ratings:
Rate this:
hi...
 i want to convert my string value to hexadecimal value...
when i enter a string in textbox a button should generate the hexadecimal value of the string..

how it is possible..

  1. Kamlakar Singh

    Post:194

    Points:1396
    Re: how to convert string value to hexa value in vb.net

       You can try this Code:


       Dim val As String
       val = "10"
       Dim hexVal As Integer
       hexVal = Convert.ToInt32(val, 16) //16 specifies the base
       Console.WriteLine(hexVal)

      Modified On Apr-09-2018 02:33:42 AM

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!