jim88 Level: Trainee
 Registered: 03-10-2007 Posts: 1
|
How to set vbmodal in the form?
Hi, I'm having a difficulty to show a form as modal in the following
situation...
Prior before the change in my project, I have a standard exe that calls an
activeX dll. This dll will populate different kind of form based on the
parameters pass out from the exe. Some of these form require administration
right and some are not. In order to prevent the access to the first form
before the second form (modal) is closed. I've set these form as modal i.e.
frm.show vbmodal <-- this work fine!
Now, I have to deploy this project in a windows vista environment and due to
some of the forms require an administrative right. So, I have to change the
program and made it an UAC compliance. So, I've created an intermediate exe
file called dllWrapper Eg:-
Standard exe --> dllWrapper file --> activeX dll
Because of this, now the vbmodal doesn't seem working anymore. May I know how to overcome this problem?
I have created a simplify version of the problem I mentioned here for your reference.
1. CallerScreenA
2. ShowScreenB
3. ShowScreenC
Previously, when
CallerScreenA --> ShowScreenC (you cannot access the first form until you have closed the second (modal) one, work fine)
After adding a wrapper program which is ShowScreenB, vbmodal fail. Now, I can access to first form without turn off second form.
CallerScreenA --> ShowScreenB --> ShowScreenC
Thanks in advance
[Edited by jim88 on 03-10-2007 at 07:44 AM GMT]
____________________________ Attached:
vbmodal.zip 15 KB (Downloads: 0)
|