help with tab key

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Guest's Avatar

    help with tab key

    Hi all ,
    I need help trapping the tab and shift-tab at form level.
    I have keypreiv set to true,tried override onkeypres no luck as with onkeydown.

    any thoughts ?

    thank you.



  • Randy

    #2
    Re: help with tab key

    Look into Control.Process CmdKey

    protected override bool ProcessCmdKey(r ef Message msg, Keys keyData)
    {
    if( keyData == Keys.Enter )
    {
    MessageBox.Show ( "Enter pressed!" );
    return true;
    }
    return base.ProcessCmd Key( ref msg, keyData );

    }

    I hope this helps...

    <CobraStrikes@a l.com> wrote in message
    news:d5t4ei$s7r $1@news8.svr.po l.co.uk...[color=blue]
    > Hi all ,
    > I need help trapping the tab and shift-tab at form level.
    > I have keypreiv set to true,tried override onkeypres no luck as with
    > onkeydown.
    >
    > any thoughts ?
    >
    > thank you.
    >
    >
    >[/color]


    Comment

    Working...