try this in the keypress event ...
VB Code:
Private Sub TextBox1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress MessageBox.Show(Convert.ToInt32(e.KeyChar).ToString("X")) '/// specify X to convert to Hex End Sub





Reply With Quote