Click here to Skip to main content
15,844,602 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm making a small program that I can see my ".doc" files without having to navigate to each folder they're in. I have a number of them that I have in 3 different locations {including an external drive} and prefer they remain that way.

Anyway, the program is mostly done except for a small problem.

When I have ANY MS Word document open and active I want my program to be "Always On Top" but would like it to Minimize/Hide when I minimize a document. If I have more than one document open and a 2nd becomes active then I want my program to remain up. Then I'd like it to return when any MS Word document becomes active. Also to close when MS Word is completely closed.

I can create a couple Macros in VBA to Minimize & Restore my program using the "Tasks" command then put those in a couple buttons. I'll probably do that for now, however I'd rather it did this on it's own if at all possible.

If there is a way that this can be done in VBA automatically {without me having to press a macro button I mean} that would be good too - though preferable to be coded into my program if at all possible.

Any help would be appreciated. Thanks in advance!

Peace to you and yours,
Matthew "Dra'Gon" Stohler
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900