Abhishek,
Add the NODEFAULT as indicated below. This will prevent further processing of the keystroke
>Hi all,
>
>Some of my forms are accepting data from a grid interface. Therefore I have written this code in the textboxes of the columns.
>
>Do Case
> Case nKeyCode = -5 and nShiftAltCtrl = 0
NODEFAULT
> Do Menu\shrtCut.Mpr
>
> Case nKeyCode = -6 and nShiftAltCtrl = 0
NODEFAULT
> ThisForm.Save
> ThisForm.Addnew
>EndCase
>It does the job asked. Unfortunately it also prints a special character in the textbox.
>
>Anybody has ideas how to remove it.
>
>Thanks.
Gregory