>>>I am using an application framework similar to the sample to launch my forms with the launchform method from the application object:
>>> oapp.launchform("mjrdetail")
>>>
>>>Within the form I do:
>>> omjrsrch = CREATE("mjrsrchfrm")
>>> omjrsrch.show()
>>>
>>>If the class mjrsrchfrm is modal, it shows and becomes active, but the mjrdetail form remains on top -- it won't go behind. If the class mjrsrchfrm is modeless, it just flashes up, then disappears.
>>>
>>>I know I am missing something major here in how these stupid objects are supposed to work together. If someone could take pity on me as a VFP newbie and point me in the right direction, I would be greatly appreciative.
>>>
>>>With tears of frustration,
>>>
>>>Valerie
>>
>>What is the setting of the Always On Top property? You also need a READ EVENTS to keep the form from flashing.
>>
>>Craig
>
>Always on top is set to false.
>
>I don't understand -- I have a READ EVENTS in affect from the original startup program. Do I issue another one when I instantiate the new class?
>
>Valerie
Only one READ EVENTS is needed. My guess is that the variable you're using when you instantiate the new class is going out of scope.
Craig
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer