VB 2008 Express HELP!
Im am attempting to make a hex translator [my first ever program on vb]
i want a text box called "Input" (done)
a button called "Translate" (done)
i have the hex values for:
A a B b C c 1 2 3
etc...
i want it so that when you type something in the text box, and click translate, it turns it into hex. So far i have this, but you cant type more then 1 letter...eg. if you type A, it will be 41, but if u typ AB, nothing
[note]: text box is called Input
code:
Private Sub Translate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Translate.Click
If Input.Text = " " Then Input.Text = "20"
If Input.Text = "A" Then Input.Text = "41"
If Input.Text = "a" Then Input.Text = "61"
If Input.Text = "B" Then Input.Text = "42"
If Input.Text = "b" Then Input.Text = "62"
End Sub
but the problem is that when i typ AB, nothing comes up?
help plz