Byte TryParse
Imports System Imports System.Globalization Class Sample Public Shared Sub Main() Dim result As Boolean Dim byteVal As [Byte] ' Byte result = [Byte].TryParse("1", NumberStyles.Integer, Nothing, byteVal) Console.WriteLine(result) End Sub End Class