Creating a Shortcut

DejaVu

Newcomer
Joined
Jan 20, 2003
Messages
8
Location
Hamburg
Hi,

i have a simple form with few buttons, some datagrids.
i would like to create a shortcut for the whole form, not for a datagrid or a button. For example, when the user press CTRL+PAGE DOWN, a next avaiable data should be visible / load.
I tried the keydown,keyup events from mybase
Visual Basic:
Private Sub frmLHTDataCorrectionDetail_KeyUp(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyUp)
but nothing happens, the application dont hold there (breakpoint).

any ideas? :-\
 
Last edited:
Hmm, i had to choosed another option.
When i edit a column in a datagrid i would like to execute a function with a shortcut (like strg+ins). When i used the form event (keypreview=true), the debuger doesnt react when i edit a column in a datagrid, but i created a mainmenu with some menuitems and set the visible to false. With this method the debuger reacts on defined shortcuts.. well
 
Back
Top