*form2.queryunload() *set focus back to form1 and activate the page which had focus before form2 was launched *we want to be able to use the hotkeys on the pagetabs to move from page to page if desired *everything works fine except the hotkeys don't work if we return to those 2 pages from form2 *until we press tab or click on the page first - until then the main window menu is activated *--I chec and the window exists before I run the next line ACTIVATE WINDOW (this.poform) TOP && this stores calling form form1.name IF TYPE('oFirehouse') = "O" .and. !ISNULL(oFireHouse) && public var for the form IF PEMSTATUS(oFireHouse,'PageFrame',5) *--The activepage when cmdbutton on form1 was clicked which launched this form lnpageNumber = oFireHouse.PageFrame.ActivePage && get the activepage DO CASE CASE lnpageNumber = 1 oFireHouse.PageFrame.occupants.activate() CASE lnpageNumber = 2 oFireHouse.PageFrame.Page2.activate() CASE lnpageNumber = 3 oFireHouse.PageFrame.Page3.activate() *NOTE: Tried the page .setfocus(), .click(), etc *etcI even tried putting this.click() at the end of each page's activate to no avail. Any ideas? I know the form has the focus because if I tab I start tabbing through the pages correctly.
DO FORM oshydrnt NAME oOsHydrnt LINKED WITH thisform.name && pass the window to return to