hidrau
asked on
Problem with Grid and speedbutton
Hello Guys
I have a form with a grid and I created a function where I can look for my information when I press any key, but I have a problem with key V because I have a speedbutton on my form with this caption &volta, the problem is that I can't change the letter once this is a design default of all the software and has in many forms.
How can I work around with this? When I press the key V I don't want to my speedbutton be pressed.
Thanks
I have a form with a grid and I created a function where I can look for my information when I press any key, but I have a problem with key V because I have a speedbutton on my form with this caption &volta, the problem is that I can't change the letter once this is a design default of all the software and has in many forms.
How can I work around with this? When I press the key V I don't want to my speedbutton be pressed.
Thanks
ASKER
I can't because this is a default of all system.
Isn't there any way to work around ?
Isn't there any way to work around ?
Try to intercept the Key pression on your form ...
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
Set KeyPreview property of form to True and catch all key events on forms KeyXX events
@sinisav: just as in my comment... ;-)
sinisav, he needs a fast solution to get rid of that in any form. I thing that is faster adding just a unit to the uses instead of write a keyevent handler in all the forms
But it's just my opinion
But it's just my opinion
ASKER
Thanks very much
mlmcc