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

Total Post:31

Posted on    March-25-2015 3:02 AM

 .NET VB.Net 

 1 Reply(s)
 811  View(s)
Rate this:

      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

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


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

Follow MindStick