Passing on PageUp/PageDown keys from a DataGrid to the object it's

G

Guest

I want a datagrid object that will not intercept PageUp or PageDown
keystrokes so that instead the tabcontrol it's on can pick it them up and
change TabPages. Any idea how to create a new version of the datagrid that
will do this?
 
C

Chris, Master of All Things Insignificant

You can enable keypreview on the form. Then in the keypress event check to
see if the pageup/pagedown event takes place. If it does, move your tab
pages accordingly around.

Chris
 

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