Hello. Here is my code.
It reading bytes from *.bin file and show it in textbox1

Code:
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
       Dim OFD As New OpenFileDialog
        Dim fullFile() As Byte
 
        If OFD.ShowDialog = Windows.Forms.DialogResult.OK Then
            fullFile = File.ReadAllBytes(OFD.FileName)
            TextBox1.AppendText(fullFile(&H2E).ToString("X2") & " ")
            TextBox1.AppendText(fullFile(&H2F).ToString("X2"))
        End If
 
    End Sub
Now I want to add substraction in textbox2.
example:
H2E - BC
H2F - CD

BCCD - 2222 = 9AABB

Textbox2. = result

I tired with this, but it gives result in decimal

Code:
   TextBox2.Text = Val(TextBox1.Text) - Val("2222")