bon011,
Please cut and paste the code below into a prg and run it from within VFP. Let us know if it works like it should for you, I can't see how VFP 6 would work any different, and I am curious as to what is going on.
MikeLewis,
I thought you might be onto something with your idea about the Default property, however as the example below will show Default does not give the described behavior, not in VFP 7 anyways.
********SAMPLE CODE************
PUBLIC oForm
oForm = CREATEOBJECT("clsAvoidClick"

oForm.show()
DEFINE CLASS clsavoidclick AS form
Top = 0
Left = 0
Height = 198
Width = 337
DoCreate = .T.
Caption = "Form1"
Name = "clsavoidclick"
AutoCenter = .T.
ADD OBJECT text1 AS textbox WITH ;
Height = 23, ;
Left = 34, ;
TabIndex = 1, ;
Top = 36, ;
Width = 100, ;
Name = "Text1"
ADD OBJECT command1 AS commandbutton WITH ;
Top = 72, ;
Left = 34, ;
Height = 27, ;
Width = 84, ;
Caption = "Command1", ;
Default = .T., ;
TabIndex = 2, ;
Name = "Command1"
ADD OBJECT text2 AS textbox WITH ;
Height = 23, ;
Left = 202, ;
TabIndex = 3, ;
Top = 36, ;
Width = 100, ;
Name = "Text2"
ADD OBJECT label1 AS label WITH ;
AutoSize = .T., ;
BackStyle = 0, ;
Caption = "WITH NODEFAULT", ;
Height = 17, ;
Left = 34, ;
Top = 18, ;
Width = 107, ;
Name = "Label1"
ADD OBJECT label2 AS label WITH ;
AutoSize = .T., ;
BackStyle = 0, ;
Caption = "WITHOUT IT", ;
Height = 17, ;
Left = 202, ;
Top = 18, ;
Width = 70, ;
Name = "Label2"
ADD OBJECT label3 AS label WITH ;
AutoSize = .F., ;
WordWrap = .T., ;
Alignment = 2, ;
BackStyle = 0, ;
Caption = "Try pressing ENTER in each of the above textboxes to see the difference.", ;
Height = 36, ;
Left = 58, ;
Top = 132, ;
Width = 216, ;
ForeColor = RGB(128,0,0), ;
Name = "Label3"
PROCEDURE text1.KeyPress
LPARAMETERS nKeyCode, nShiftAltCtrl
if nKeyCode==13
NODEFAULT &&Get rid of the ENTER
thisform.command1.setfocus
endif
ENDPROC
PROCEDURE command1.Click
MESSAGEBOX("I was Clicked!"

ENDPROC
PROCEDURE text2.KeyPress
LPARAMETERS nKeyCode, nShiftAltCtrl
if nKeyCode==13
thisform.command1.setfocus
endif
ENDPROC
ENDDEFINE
Slighthaze =
NULL
craig1442@mchsi.com"Whom computers would destroy, they must first drive mad." - Anon