VBA Word 2000 - make form stay on top of everything

M

Mark

I've read other posts on similar subjects, but they don't meet my
needs. Does anyone know of a way to make a form stay on top of all
applications or even on top of all open Word documents? I want a form
that stays on top even if I minimize its parent Window (the document
from which it was launched). I want it to stay on top even if I click
on another Word document. Is it possible? With Windows 2000 SMI, I
wonder if it's not.

I've used the SetWindowPos function, but as soon as I minimize the
form's parent, the form minimizes as well. I've tried using the
SetParent function and the GetDesktopWindow function to make the
desktop the forms parent, but for some reason the GetDesktopWindow
seemed to return the same handle as the form's parent Word document.

Any help would be greatly appreciated.
 
M

Mark

OK - I found the EXACT functionality I want to try to replicate. Still
no solution. It must be possible because Word does it (somehow). I
want to replicate the functionality of the Cross-reference dialog:

In Word (I know this works in 2000 and 20003):

- From the Insert menu, select Reference and then Cross-reference
- Open another Word document
- Click on the older document, then the newer, then the dialog

Notice how the dialog stays on top of all Word documents, and doesn't
bring its original parent to the front when you drag it around, and
doesn't disappear when you minimize one of the documents. You can even
kill its original parent and it won't go away.

I figure there's got to be a way to do this since it's built into
Word!!

Any ideas? Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top