Link to home
Create AccountLog in
Avatar of hidrau
hidrauFlag for Brazil

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
Avatar of Mike McCracken
Mike McCracken

Try taking the & off the caption

mlmcc
Avatar of hidrau

ASKER

I can't because this is a default of all system.

Isn't there any way to work around ?
Try to intercept the Key pression on your form ...
ASKER CERTIFIED SOLUTION
Avatar of Ferruccio Accalai
Ferruccio Accalai
Flag of Italy image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
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
Avatar of hidrau

ASKER

Thanks very much