471,349 Members | 1,916 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,349 software developers and data experts.

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

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?
Jul 21 '05 #1
1 1859
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

"Harald Solvberg" <Ha************@discussions.microsoft.com> wrote in
message news:02**********************************@microsof t.com...
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?

Jul 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by yihan | last post: by
1 post views Thread by spamfilteraccount | last post: by
reply views Thread by =?Utf-8?B?SGFyYWxk?= | last post: by
2 posts views Thread by ssubbarayan | last post: by
27 posts views Thread by ssubbarayan | last post: by
9 posts views Thread by ssubbarayan | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.