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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pageframe and setting focus

Status
Not open for further replies.

Keepontrying

Programmer
May 12, 2003
67
0
0
US
I am trying to setfocus to the grid on page2 of my pageframe. Here is want I am doing. From a field the page1 I issue this command:

THISFORM.pageframe1.ACTIVEPAGE = 2
THISFORM.pageframe1.page2.ENABLED = .T.
THISFORM.pageframe1.page2.dataset2.grid1.column1.text1.SetFocus

The page2 is activate but my text1 field doesn't get the focus

any suggestion?

Thanks


 
i haven't tried this but you could.

THISFORM.pageframe1.ACTIVEPAGE = 2
THISFORM.pageframe1.page2.ENABLED = .T.
THISFORM.pageframe1.page2.dataset2.grid1.SetFocus


kilroy [trooper]
philippines
 
HI

First enable it, then make that active, then set the focus.


ThisForm.PagefRame1.Page2.Enabled = .t.
ThisForm.Pageframe1.ActivePage=2

Then.. proceed to st focus as you want..

:)

____________________________________________
ramani - (Subramanian.G) :)
When you ask VFP questions, please add VFP version.
Merry Christmas & Happy New Year
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top