>I created a formset and include two forms, form1 and form2. Form1 is visible, form2 is invisible.
>Form1 has one texbox and one pushbutton,code in the pushbutton click's event as follow:
>Thisformset.Form1.visible = .F.
>Thisformset.form2.visible = .T.
>
>The Form2 has one textbox and one pushbutton, too.
>IF I push form1's pushbutton then form1 is invisibled and form2 is visibled.But there is a guestion,when form2's textbox is setfocus ,the "enter key" is failure,I input some words in textbox then press enter key, the focus is not moved to pushbutton.
>It's a serious, Please tell me what happen.
>
>Thanks !
Eric: Check that the 'DEFAULT' property on the button is set to TRUE for Form2. This property assigns 'Enter' to the button in question.
Barbara