answersLogoWhite

0

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)

User Avatar

Wiki User

16y ago

Still curious? Ask our experts.

Chat with our AI personalities

ReneRene
Change my mind. I dare you.
Chat with Rene
JudyJudy
Simplicity is my specialty.
Chat with Judy
ViviVivi
Your ride-or-die bestie who's seen you through every high and low.
Chat with Vivi

Add your answer:

Earn +20 pts
Q: Visual basic code for hexadecimal number addition?
Write your answer...
Submit
Still have questions?
magnify glass
imp