Z_Beeblebrox
asked on
Closing ActiveX exe child windows
Hi,
I am working on an application which opens up a bunch of activeX exe forms which are set to be children of the calling form. What I need to do is to find a way to cleanly shut all of these down.
Zaphod.
I am working on an application which opens up a bunch of activeX exe forms which are set to be children of the calling form. What I need to do is to find a way to cleanly shut all of these down.
Zaphod.
see what you can get from this idea:
Dim frm As Form
For Each frm In Forms
Unload frm
Set frm = Nothing
Next frm
Dim frm As Form
For Each frm In Forms
Unload frm
Set frm = Nothing
Next frm
ASKER
JonFish85:
That doesn't work for ActiveX exe windows.
rmichels:
That was the original plan, however we discovered that if the user end-tasked the activeX exe, then the main app tried to call the close method, the main app crashed and even doing an on error goto didn't help. As a result, we would like to find an alternative.
Zaphod.
That doesn't work for ActiveX exe windows.
rmichels:
That was the original plan, however we discovered that if the user end-tasked the activeX exe, then the main app tried to call the close method, the main app crashed and even doing an on error goto didn't help. As a result, we would like to find an alternative.
Zaphod.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi,
I will do some investigation when I'm at work on Monday.
Zaphod.
I will do some investigation when I'm at work on Monday.
Zaphod.
ASKER
Sorry it took so long to get around to this. I tested it and trapping the error seems to work fine. Something wierd must have been happening on that computer that day.
Zaphod.
Zaphod.
Then the application making use of the activeX exe can call that method to close the form(s).