RaiseEvent fails from a Modal form
- From: "Peter T" <peter_t@discussions>
- Date: Wed, 2 Aug 2006 16:27:14 +0100
Via a button on a modal form in an ActiveX dll, I trigger a RaiseEvent to be
trapped by the app that called the dll. Running from the VBIDE it works fine
but not if compiled.
This appears to be a known issue. An old suggestion of Ken Halter (thanks)
is first to hide the form. I do that and immediately re Show the modal form
after. This works but has unpleasant effects, not unsurprisingly. The
purpose of the event is to run another app & window, which must be launched
from the dll parent app. The new app's window ends up underneath the modal
window.
No doubt I can bring the new window to the front that but it's still all
going to be ugly. It's some years since Ken proffered that suggestion and
wonder if since then an alternative workaround has been discovered.
Regards,
Peter T
.
- Follow-Ups:
- Re: RaiseEvent fails from a Modal form
- From: Dmitriy Antonov
- Re: RaiseEvent fails from a Modal form
- From: DanMH
- Re: RaiseEvent fails from a Modal form
- Prev by Date: Re: VB Learning Edition and VB6 service packs
- Next by Date: Working with SubMain and multiple forms
- Previous by thread: Re: VB Learning Edition and VB6 service packs
- Next by thread: Re: RaiseEvent fails from a Modal form
- Index(es):
Relevant Pages
|