Hi!
i'm trying to make a converter, i have 4 textboxes, 2 of them are encode, the other 2 are decoders.
on the encode process i use:
and so on.. I also use KeyDown, but thats not really the problem. The problem is the decoder!Code:Private Sub TextBox1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress
If e.KeyChar().Equals(Chr(13)) Then TextBox2.Text = TextBox2.Text + "I89" '[enter]
If e.KeyChar().Equals(Chr(33)) Then TextBox2.Text = TextBox2.Text + "G33" '!
If e.KeyChar().Equals(Chr(34)) Then TextBox2.Text = TextBox2.Text + "P78" '"
If e.KeyChar().Equals(Chr(35)) Then TextBox2.Text = TextBox2.Text + "G31" '#
If e.KeyChar().Equals(Chr(36)) Then TextBox2.Text = TextBox2.Text + "S93" '$
If e.KeyChar().Equals(Chr(37)) Then TextBox2.Text = TextBox2.Text + "O05" '%
If e.KeyChar().Equals(Chr(38)) Then TextBox2.Text = TextBox2.Text + "B34" '&
If e.KeyChar().Equals(Chr(39)) Then TextBox2.Text = TextBox2.Text + "F23" ''
If e.KeyChar().Equals(Chr(40)) Then TextBox2.Text = TextBox2.Text + "U93" '(
I want it to be decoded when a button is pressed, because I cant use the KeyPress or KeyDown function because it will most likely be copy-pasted.
So how would i do that, for instant the char A Will be converted from "W11" to "A".
Now i know there is a function called Convert, but i have no idea on how it works or if it even is proper for this task.
Please help me, this program is only for me to lear more about programming.
Thanks! :)

