|
-
February 14th, 2000, 11:00 AM
#1
how to bring add-in form to top
I have written a VB 6 add-in with a form window that offers an interface to PERL. You can run selected portions of the code pane window against a perl script.
Everything works well in design-mode, i.e. when the Add-In is started in the IDE.
You hit the run button and the perl script is executed, the result is displayed and you can copy the result to the clipboard.
Now as soon as the ActiveX DLL version of the Add-In is used, whenever the user hits the "Run script" button (which starts CreateProcess for the Perl script), the add-In is in the background, behind the VB-IDE window.
I have tried every trick that I now of, to no avail.
I used SetForegroundWindow, SetActiveWindow, BringWindowToTop... after running the script.
No luck so far.
I have run out of ideas.
Any input welcome.
-
February 15th, 2000, 02:47 AM
#2
Re: how to bring add-in form to top
in case anyone cares, I have fixed the problem.
Seems like if you start a "background process" from an Add-in it is "better" to create the process with the vbHide flag.
Otherwise, the add-in window will be in the background ("behind" the VB IDE window).
At least, using the vbHide flag with the Shell command fixed my problem.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|