I'm still not quite sure I understand what you're looking for. If you want
to capture a system-wide key press (not only from within a certain form or
application) then I suggest checking out the following article on low-level
keyboard hooks in VB.NET
(
http://www.developer.com/net/net/art...1087_2193301_1). If you are
trying to catch key press events from a specific textbox in your application
then use the KeyPressEventArgs object as I suggested previously...
Sub keypressed(ByVal o As [Object], ByVal e As KeyPressEventArgs)
lblName.Text += e.KeyChar.ToString()
End Sub
KeyChar is of type "Char" which means you can do anything with it that you
can do with a "Char" object including getting the ASCII code or character...
"Lumpierbritches" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Thank you, however I'm sure I was unclear. I want to pull and place into a
> lblName.text the ASCII equivalent to the Key Pressed on the keyboard. I'm
using
> this for a psuedo registration/password algo. for a small program. Each
time a
> key is pressed on the keyboard, the lblName.Text will reflect the keypress
> equivalent to the corresponding ASCII numeric value.
>
> Michael