Home All Groups Group Topic Archive Search About
Author
10 Oct 2005 1:28 AM
Bala
Hi

I am calling my activex Exe from my standard exe like below statment.

objexe.funct1 para1,para2

after the activex exe loading, i am doing some kind of calculation and i am
closing the activex exe. after that i should get focus to my stardand exe.

so for this kind of situation, what should i do? how to get the focus onmy
standard exe, when my activex exe get close.

thanks
bala

Author
10 Oct 2005 3:14 AM
alpine
On Sun, 9 Oct 2005 18:28:01 -0700, "Bala"
<B***@discussions.microsoft.com> wrote:

Show quoteHide quote
>Hi
>
>I am calling my activex Exe from my standard exe like below statment.
>
>objexe.funct1 para1,para2
>
>after the activex exe loading, i am doing some kind of calculation and i am
>closing the activex exe. after that i should get focus to my stardand exe.
>
>so for this kind of situation, what should i do? how to get the focus onmy
>standard exe, when my activex exe get close.
>
>thanks
>bala


Have you tried using the SetFocus method of the form that you wish to
have the focus?

HTH,
Bryan
_______________________________
Bryan Stafford
New Vision Software
newvision_don'tspam@mvps.org
Author
10 Oct 2005 3:27 AM
Bala
Hi,

thanks for the reply.

The activex exe server program is the huge program, its contains mdi form
and nearly 80 forms. the user will do lot of work on that and finally when he
close the activex exe, I'll start some other work from the standard exe based
on the results from active exe.

I dont know where to put the setfocus. you mean when closing the acitve exe
project, that time can I enable the standard exe program?


thanks
bala

Show quoteHide quote
"alpine" wrote:

> On Sun, 9 Oct 2005 18:28:01 -0700, "Bala"
> <B***@discussions.microsoft.com> wrote:
>
> >Hi
> >
> >I am calling my activex Exe from my standard exe like below statment.
> >
> >objexe.funct1 para1,para2
> >
> >after the activex exe loading, i am doing some kind of calculation and i am
> >closing the activex exe. after that i should get focus to my stardand exe.
> >
> >so for this kind of situation, what should i do? how to get the focus onmy
> >standard exe, when my activex exe get close.
> >
> >thanks
> >bala
>
>
> Have you tried using the SetFocus method of the form that you wish to
> have the focus?
>
> HTH,
> Bryan
> _______________________________
> Bryan Stafford
> New Vision Software
> newvision_don'tspam@mvps.org
>
Author
10 Oct 2005 6:12 AM
Bala
Hi

I am calling the active Exe program like below from std exe. I want to run
the msgbox code after ending the ActiveX exe.

objAIR.LoadMenu para1,para2
msgbox "test"

Thanks
Bala


Show quoteHide quote
"Bala" wrote:

> Hi,
>
> thanks for the reply.
>
> The activex exe server program is the huge program, its contains mdi form
> and nearly 80 forms. the user will do lot of work on that and finally when he
> close the activex exe, I'll start some other work from the standard exe based
> on the results from active exe.
>
> I dont know where to put the setfocus. you mean when closing the acitve exe
> project, that time can I enable the standard exe program?
>
>
> thanks
> bala
>
> "alpine" wrote:
>
> > On Sun, 9 Oct 2005 18:28:01 -0700, "Bala"
> > <B***@discussions.microsoft.com> wrote:
> >
> > >Hi
> > >
> > >I am calling my activex Exe from my standard exe like below statment.
> > >
> > >objexe.funct1 para1,para2
> > >
> > >after the activex exe loading, i am doing some kind of calculation and i am
> > >closing the activex exe. after that i should get focus to my stardand exe.
> > >
> > >so for this kind of situation, what should i do? how to get the focus onmy
> > >standard exe, when my activex exe get close.
> > >
> > >thanks
> > >bala
> >
> >
> > Have you tried using the SetFocus method of the form that you wish to
> > have the focus?
> >
> > HTH,
> > Bryan
> > _______________________________
> > Bryan Stafford
> > New Vision Software
> > newvision_don'tspam@mvps.org
> >
Author
10 Oct 2005 3:34 AM
AGP
How about AppActivate()?

AGP

Show quoteHide quote
"Bala" <B***@discussions.microsoft.com> wrote in message
news:17DE5805-53F7-4686-B1E3-727052314AF2@microsoft.com...
> Hi
>
> I am calling my activex Exe from my standard exe like below statment.
>
> objexe.funct1 para1,para2
>
> after the activex exe loading, i am doing some kind of calculation and i
am
> closing the activex exe. after that i should get focus to my stardand exe.
>
> so for this kind of situation, what should i do? how to get the focus onmy
> standard exe, when my activex exe get close.
>
> thanks
> bala
Author
10 Oct 2005 3:14 AM
Bala
Hi

Thanks for the reply. How do my standard exe know when the actiex exe get
closed.

thanks
bala

Show quoteHide quote
"AGP" wrote:

> How about AppActivate()?
>
> AGP
>
> "Bala" <B***@discussions.microsoft.com> wrote in message
> news:17DE5805-53F7-4686-B1E3-727052314AF2@microsoft.com...
> > Hi
> >
> > I am calling my activex Exe from my standard exe like below statment.
> >
> > objexe.funct1 para1,para2
> >
> > after the activex exe loading, i am doing some kind of calculation and i
> am
> > closing the activex exe. after that i should get focus to my stardand exe.
> >
> > so for this kind of situation, what should i do? how to get the focus onmy
> > standard exe, when my activex exe get close.
> >
> > thanks
> > bala
>
>
>
Author
10 Oct 2005 4:04 AM
Someone
Are you sure that the ActiveX EXE was unloaded? It usually unload it self
when you Set objexe = Nothing. Look in the process list for your AX EXE and
see if it's there. If it still there, then it has not unloaded some of it's
forms. It works like a standard EXE where you have to unload all forms for
it to exit.



Show quoteHide quote
"AGP" <sindizzy.***@softhome.net> wrote in message
news:Oil2f.8$LX5.3@newssvr11.news.prodigy.com...
> How about AppActivate()?
>
> AGP
>
> "Bala" <B***@discussions.microsoft.com> wrote in message
> news:17DE5805-53F7-4686-B1E3-727052314AF2@microsoft.com...
>> Hi
>>
>> I am calling my activex Exe from my standard exe like below statment.
>>
>> objexe.funct1 para1,para2
>>
>> after the activex exe loading, i am doing some kind of calculation and i
> am
>> closing the activex exe. after that i should get focus to my stardand
>> exe.
>>
>> so for this kind of situation, what should i do? how to get the focus
>> onmy
>> standard exe, when my activex exe get close.
>>
>> thanks
>> bala
>
>
Author
10 Oct 2005 5:41 AM
Bala
Yes. I am sure the activex exe get closed. I just want to get the focus when
the activex exe get closed.

Thanks
Balakumar


Show quoteHide quote
"Someone" wrote:

> Are you sure that the ActiveX EXE was unloaded? It usually unload it self
> when you Set objexe = Nothing. Look in the process list for your AX EXE and
> see if it's there. If it still there, then it has not unloaded some of it's
> forms. It works like a standard EXE where you have to unload all forms for
> it to exit.
>
>
>
> "AGP" <sindizzy.***@softhome.net> wrote in message
> news:Oil2f.8$LX5.3@newssvr11.news.prodigy.com...
> > How about AppActivate()?
> >
> > AGP
> >
> > "Bala" <B***@discussions.microsoft.com> wrote in message
> > news:17DE5805-53F7-4686-B1E3-727052314AF2@microsoft.com...
> >> Hi
> >>
> >> I am calling my activex Exe from my standard exe like below statment.
> >>
> >> objexe.funct1 para1,para2
> >>
> >> after the activex exe loading, i am doing some kind of calculation and i
> > am
> >> closing the activex exe. after that i should get focus to my stardand
> >> exe.
> >>
> >> so for this kind of situation, what should i do? how to get the focus
> >> onmy
> >> standard exe, when my activex exe get close.
> >>
> >> thanks
> >> bala
> >
> >
>
>
>
Author
11 Oct 2005 8:12 AM
J French
On Sun, 9 Oct 2005 22:41:02 -0700, "=?Utf-8?B?QmFsYQ==?="
<B***@discussions.microsoft.com> wrote:

>Yes. I am sure the activex exe get closed. I just want to get the focus when
>the activex exe get closed.

http://www.mvps.org/vb/code/ForceFore.zip

Also, best get your AX EXE to tell your main AXE when it is expected
to take focus.