> Hi friends,
> Has anybody succeeded in changing keys of a keyboard? I need to replace
> "Page up" or any other key by "_" (underscore = Shift+minus sign) ... or
> is there a tool or a component on the net where I can download from?
> Thanks in advance
> T h e m i n h D i e p
> Programmer-analyst / Programmeur-analyste
> National Research Council Canada / Conseil national de recherches Canada
> Biothechnology Research Institute / Institut de recherche en
Allowing your form to preview the keys will let you catch any unwanted
key-presses and dispose of them...
Private Sub Form_KeyPress(KeyAscii As Integer)
If (KeyAscii = vbKeyEscape) Then DoCmd.Close
This will close the form when the user hits the Esc key. If you want to trap
other/many keys, maybe a Select Case statement would be appropriate.
Private Sub Form_KeyPress(KeyAscii as Integer)
Select Case KeyAscii
Case vbKeyPageUp, vbKeyPageDown, vbKeyHome, vbKeyEnd
KeyAscii = Asc("_")
This works great in Access, but I don't know how to do that in Delphi or VB
(I would assume that would be the same), as I'm coming from the Access side
of things, and don't really touch any of the other stuff if I can help it
LMH rogue(at)channel1 dot com
Please limit questions to news-group...
Reply address may be foiled to fool spam-bots. Remove the obvious.
"and the geek shall inherit the earth."