Home > DeveloperSection > Forums > how to convert string value to hexa value in vb.net
Madhu Mitha
Madhu Mitha

Total Post:31

Points:217
Posted on    March-25-2015 3:02 AM

 .NET VB.Net 
Ratings:


 1 Reply(s)
 557  View(s)
Rate this:
hi...


      i want to convert my string value to hexadecimal value...
      wen i enter a string in textbox a button should generate the hexadecimal value of the string..

how it is possible..



Kamlakar Singh
Kamlakar Singh

Total Post:194

Points:1396
Posted on    March-25-2015 3:40 AM

   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)


Don't want to miss updates? Please click the below button!

Follow MindStick