I am using vfp 8.
In the form's init method I have:
thisform.keypreview = .t.
In the form's keypress method I have:
LPARAMETERS nKeyCode, nShiftAltCtrl
DO case
CASE nkeycode = 14 AND nShiftAltCtrl = 2 && ctrl+n
thisform.cmdNew.Click
nodefault
...
and in cmdNew's click method:,
Append Blank
Goto Bottom
Thisform.grd1.COLUMN1.SetFocus
When I press ctrl+n in the first column in the grid everything works fine. A
new row is added in the grid and the first column of it is selected.
When I press ctrl+n in the second column, a new row is added as it should,
but it is the first column in the CURRENT row that gets the focus.
If I press the New button from the second column everything works as it
should.
What am I doing wrong?
Sincerely,
Jan Nordgreen