I normally make a form property on the second form in the init() and store the calling form reference in it. That way any method on the form can interrogate the calling form object.
Dave -----Original Message----- From: ProFox [mailto:[email protected]] On Behalf Of Desmond Lloyd Sent: 30 July 2014 16:41 To: ProFox Email List Subject: Re: VFP6: Forms on top of forms... How do you pass it as an object? Regards, Desmond On 30 July 2014 10:28, Dave Crozier <[email protected]> wrote: > Either open the second form as modal or open the second form and pass > to it an object reference to the first form and then you can use the > reference to disable/enable anything on the calling form. > > Dave > > -----Original Message----- > From: ProFox [mailto:[email protected]] On Behalf Of Desmond > Lloyd > Sent: 30 July 2014 16:27 > To: ProFox Email List > Subject: VFP6: Forms on top of forms... > > Probably a very basic question, nevertheless.... > > Have a main form that opens up with buttons down at bottom. Click on > one and another form pops up with it's own set of button. Those work > fine, however this window is a bit smaller and you can still see the > original set of buttons from the original form. In my testing I have > discovered that the first set of buttons are still firing despite > having the other form displayed??? > > What do I need to do to disable the buttons from the original form. > Guess I could disable them on the fly, but had thought that by > defining the right window type etc. that the first set of buttons would be > disabled.... > > Suggestions/Thoughts? > > Regards, > Desmond > > > --- StripMime Report -- processed MIME parts --- multipart/alternative > text/plain (text body -- kept) > text/html > --- > [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.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.

