VB.Net | Convert a hexadecimal to an integer .Maui 4 years ago Dim AnHex As String = "FFFFFF" Dim MyInteger As Integer = CInt("&H" & AnHex) Console.WriteLine(MyInteger)