Michael,
Forgive me but I'm a little confused here. Maybe you aren't telling us
something or I'm having a bad day, but I really can't see your problem here.

FormA calls FormB and you want the FormB to 
(1) Appear on top 
and 
(2) get focus

OK? Well I use this al the time in my apps with no problem SO:

If you remove the "if oUtils.AddForm" or everything after the "Do Form" do
you still get the same result? 

Does the problem occur the first time you launch the FormB or subsequent
times when the FormB is there and simply needs activating?
 
I do assume you are running the forms in the VFP desktop. If they are "show
as desktop" forms then that would explain something.

I did say in a previous post it had been a long week so forgive my
confusion.

Dave Crozier

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of MB Software Solutions
Sent: 17 May 2007 16:52
To: [email protected]
Subject: Re: Want to activate child form launched in parent (but keep
parentopen)

MB Software Solutions wrote:
> Richard Kaye wrote:
>   
>> How about loFrm.Show instead?
>>   
>>     
> Actually, I'm already doing that (and so that's not it):
>
> LPARAMETERS tlActivate
> IF NOT EOF(this.cCursor) THEN
>     LOCAL loFrm as Form, liCustID as Integer, lcName as String
>     liCustID = EVALUATE(this.cCursor + ".iid")
>     lcName = ALLTRIM(EVALUATE(this.cCursor + ".cname"))
>     DO FORM .\forms\frmAccounts WITH liCustID, lcName NAME loFrm
>     IF oUtils.AddForm(loFrm,loFrm.cUniqueID,.T.) THEN
>         loFrm.Show()
>         IF tlActivate THEN
>             loFrm.Activate()
>         ENDIF
>     ELSE
>         loFrm.Release()
>     ENDIF
> ENDIF
>
>
>   
Adding the NOSHOW() didn't fix it.

-- 
Michael J. Babcock, MCP
MB Software Solutions, LLC
http://mbsoftwaresolutions.com
http://fabmate.com
"Work smarter, not harder, with MBSS custom software solutions!"



[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.

Reply via email to