borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (USB Storage Device Detection)Next Topic (Urgent help:VB6 READ CONCANTENATED SMS) New Topic New Poll Post Reply
AndreaVB Forum : VB General : ASCII
Poster Message
mrcoolcurrent
Level: Graduate

Registered: 19-01-2007
Posts: 12

icon ASCII

Please can someone describe the concept of a small program that I want to work on. I want the program to give the value of any letter pressed on a keyboard.


Thanks!

11-04-2007 at 08:07 AM
View Profile Send Email to User Show All Posts | Quote Reply
JLRodgers
Level: Moderator

Registered: 04-04-2002
Posts: 1616
icon Re: ASCII

For VB6, for any KEY pressed

Private Sub Form_KeyUp(KeyCode As Integer, Shift As Integer)
    If Shift Then
        MsgBox KeyCode + 32 ' a is different keyascii than A, but same keycode
    Else
        MsgBox KeyCode
    End If
End Sub


But for just the keys (a-z, etc)

Private Sub Form_KeyPress(KeyAscii As Integer)
    MsgBox KeyAscii
End Sub




[Edited by JLRodgers on 11-04-2007 at 06:57 PM GMT]

____________________________
Everywhere's Local (classifieds, job postings, & more for everycity in the world - user entered)

12-04-2007 at 12:56 AM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
mrcoolcurrent
Level: Graduate

Registered: 19-01-2007
Posts: 12
icon Re: ASCII

Thank You. My problem is solved.

12-04-2007 at 03:03 PM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : VB General : ASCII
Previous Topic (USB Storage Device Detection)Next Topic (Urgent help:VB6 READ CONCANTENATED SMS) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder