Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trapping Keyboard Keys and finding the right Keycodes

Status
Not open for further replies.

Ktx7ca

IS-IT--Management
Apr 5, 2008
88
CA
Hello Everyone

I'm atempting to trap the + - and . keys for special use on specific form I can trap the F9 using VBKeyF9 But I'm having trouble trapping the +-. keys. I have search about for the proper keycode for those keys and have found several differnt codes for each one but none seem to do the trick

any througths greatly apreciated
 
How are ya Ktx7ca . . .

Using the forms [blue]On Key Down[/blue] event with the forms [blue]Key Preview[/blue] event set to yes ... we have:

[tt][blue] Shift KeyCode
***** *******
KeyBoard [red]+[/red] 1 187
KeyPad [red]+[/red] 0 107
KeyBoard [red]-[/red] 0 189
KeyPad [red]-[/red] 0 109
KeyBoard [red].[/red] 0 190
KeyPad [red].[/red] 1 46[/blue][/tt]

See Ya! . . . . . .

Be sure to see thread181-473997 [blue]Worthy Reading![/blue] [thumbsup2]
Also faq181-2886 [blue]Worthy Reading![/blue] [thumbsup2]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top