>Problem: When the Modal property of a VFP (version 5.0 or 7.0) form with a LeadTools (version 5 or 12) ocx object is changed to TRUE and the form is called by another form, the form with the LeadTools object will not show. But the form is shown at the bottom of the Window menu and it has to be clicked to appear on the screen. Tried setting _VFP.AutoYield to FAULSE and saw no effects. Any clues?
Alan,
While I don't know what's actually causing the problem (and I don't have LeadTools' object to place with), you could check out the entry on SetForegroundWindow in the WinAPI section. You could put a call to the function in the Activate event of the modal form and see what happens.
If you need a handle to the form in VFP 5, you could use Foxtools.Fll to get it. In VFP 7, just use the new HWnd property.
HTH.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao