Navigation keys in modal form?

A

Andrew Gabb

I have a modal form with multiple records showing. If I start the
form as a modal form using acDialog, the navigation keys such as
PgUp, PgDn don't work.

Anyone know a way round this? I don't particularly want to code the
navigation keys because there are a number of them.

Andrew
 
A

Allen Browne

How about setting the form's NavigationButtons property to Yes?

Could you show the form in Datasheet view? Up/Down will work then.

If necessary, you could set the form's KeyPreview to Yes, and trap PgUp/PgDn
in the form's KeyDown event.
 
A

Andrew Gabb

Allen said:
How about setting the form's NavigationButtons property to Yes?

Already Yes.
Could you show the form in Datasheet view? Up/Down will work then.

No, I need buttons on the header.
If necessary, you could set the form's KeyPreview to Yes, and trap PgUp/PgDn
in the form's KeyDown event.

This is very messy except for just a couple of keys.

Andrew
 
A

Andrew Gabb

Albert said:
Are you sure you need a dialog form?

Perhaps just using a model form would work ok?

That will solve this problem but it gives me another one. See
article "Can't use Mouse on Find Dialog".
Furhter, I was not aware that having a acDialog form disables the page
up/page down keys. Perhaps you might want to "set" the focus to a field on
the form..as that might fix this...

Sorry but no.

Andrew
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top