Disable Enter Key?

mohammadagul

PrinceAtif
Local time
Today, 21:37
Joined
Mar 14, 2004
Messages
298
How can i Disable "Enter" Key?
 
why would you want to do this?

are you referring to the shift + enter shortcut?

Col
 
it is not wise to disable the Enter key ... did you consider its side effects ?
 
Maybe a better question would be... What are you trying to prevent the user from doing?

You can trap if the user presses the Enter key. Search the forum for the KeyPress event and you will find examples.
 
wov so many questions.

ok here we go.
the main reason i want to prevent user from hitting the Enter key to go to next record or to next control is because , they asked me to do it. the have been some programm in Foxpro in whihc the enter key was already disabled and they are used to hit the tab key to go to next control. so they wan the same thing access also.

by the was what are the side effects in disabling the enter key?
 
You can set the forms Cycle property to prevent the Enter key from advancing to the next record. Set the "Cycle" property on the "Other" tab to "Current Record".
 
i tried your suggestion and gave a glimps of this to the company manager.

how about preventing it from going to next control?
 
Maybe what you want is:

Go to the tools menu and click options

on the keyboard tab there is an "Move after enter" group. Try selecting "Don't Move".
 
You need to explore and experiment with the forms and controls properties.

Select the controls in question and open the Properties option. Click on the Other tab and change the Tab Stop property to No. That will prevent the focus moving to the next control if the user presses the Enter or Tab keyboard button.
 
hi cav
thankalot
just what i need....

thanks guys.... i got what i need
 

Users who are viewing this thread

Back
Top Bottom