Assuming you've a couple of textboxes for two hex numbers and a label for results, the following will add two hex numbers and display the result in hex. Dim a, b, c As Integer a = Convert.ToInt32(TextBox1.Text, 16)
b = Convert.ToInt32(TextBox2.Text, 16)
c = a + b
Label1.Text = Hex(c)
Chat with our AI personalities
Visual Basic Controls work on Visual Studio for Visual Basic and Applications that made by Visual Basic.
Visual Basic was started in 1991.
Microsoft is the developer of Visual Basic.
No.
How to add a record in Visual basic?