> VFP 9 form with a pageframe with 2 pages. > > I want to call a method when a user is leaving the second > page, and clicking on the first page. I don't want to call > this method when the form is losing focus, in the situation > where the user is clicking onto another form. > > How would I do this? THISFORM.pgfForm.Click()? Is there a > THISFORM.pgfForm.ChangeOfPage() type of event?
Here's code I use to attach a method to a page's ACTIVATE event * --------------------------------------------------------------------- * Bindevent to this pages ACTIVATE event to get control when a page * becomes active. We can do all kinds of special things in that code, * based on the page selected and conditions at the time of the switch. * The action is to run GO_LMUTILS:REGPAGESW when this page becomes active. * * The page name is taken from CURPAGES.PAGENAME *----------------------------------------------------------------------- - cactivectl = "thisform.pageframe1."+ALLTRIM(curpages.pagename) BINDEVENT(&cactivectl,"Activate",go_lmutils,"regpagesw") Bill > Thanks. > > -Kevin > CULLY Technologies, LLC > > Sponsor of FoxForward 2007 > foxforward.net > > > [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

