Carlos,
Your button default value might be set to .T. Make it .F.
JB
>Check TabOrder.
>
>Dave
>
>>Hi all
>>
>>I have a modal forma that is called from other form, in the modal form called I have 2 textboxes and OK and Cancel buttons.
>>When I enter data in the first textbox and hit enter key, it goes directly to the OK button ignoring the second textbox, tabs are ok and the controlsources of the 2 textboxes are ok, and if I enter data in the first and push tab key or cursordown key goes to the second textbox.
>>Can you explain what is wrong ?
>>
>>Thanks in advance
JESS S. BANAGA
Project Leader - SDD division
...shifting from VFP to C#.Net
CHARISMA simply means: "Be more concerned about making others feel good about themselves than you are in making them feel good about you."