Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form w/PageFrame - Set Focus

Status
Not open for further replies.

IForgot

Programmer
Mar 20, 2002
122
US
I have a Form using PageFrame containing 3 "Tab" pages.

When the user completes data entry they click on the COMMIT button on the 3rd Tab page.

Upon completion of the COMMIT operation I re-initialize the Form parameters to enable the next input. And I want to return the user's Focus to Tab Page 1 - Field 1

I can get the Field 1 as long as I get onto Page 1, but the program is not bringing Page 1 to the front of the PageFrame. Instead it is leaving the user on Page 3.

I have tried the following sequence:
ThisForm.PageFrame.Pg1.Enabled = .T. && actually never disabled
ThisForm.PageFrame.Pg1.SetFocus
ThisForm.PageFrame.Pg1.Field1.SetFocus

But this has not been successful.

Your advice would be greatly appreciated.

Thanks,
I_Forgot
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top